Page MenuHomeWickedGov Phorge

IsScalar.php
No OneTemporary

Size
576 B
Referenced Files
None
Subscribers
None

IsScalar.php

<?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

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)

Event Timeline