Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F1432722
IsScalar.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
576 B
Referenced Files
None
Subscribers
None
IsScalar.php
View Options
<?php
namespace
Hamcrest\Type
;
/*
Copyright (c) 2010 hamcrest.org
*/
use
Hamcrest\Core\IsTypeOf
;
/**
* Tests whether the value is a scalar (boolean, integer, double, or string).
*/
class
IsScalar
extends
IsTypeOf
{
public
function
__construct
()
{
parent
::
__construct
(
'scalar'
);
}
public
function
matches
(
$item
)
{
return
is_scalar
(
$item
);
}
/**
* Is the value a scalar (boolean, integer, double, or string)?
*
* @factory
*/
public
static
function
scalarValue
()
{
return
new
self
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, May 16, 22:15 (1 d, 3 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
75/1a/175e1c70271d3e17afaa7c5af8f1
Default Alt Text
IsScalar.php (576 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment