Вход Регистрация
Файл: gapps/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsNumeric.php
Строк: 20
<?php
namespace HamcrestType;

/*
 Copyright (c) 2010 hamcrest.org
 */
use HamcrestCoreIsTypeOf;

/**
 * Tests whether the value is numeric.
 */
class IsNumeric extends IsTypeOf
{

    public function 
__construct()
    {
        
parent::__construct('number');
    }

    public function 
matches($item)
    {
        return 
is_numeric($item);
    }

    
/**
     * Is the value a numeric?
     *
     * @factory
     */
    
public static function numericValue()
    {
        return new 
self;
    }
}
Онлайн: 0
Реклама