Inspekt\Inspekt::getInt PHP 메소드

getInt() 공개 정적인 메소드

Returns (int) value.
public static getInt ( mixed $value ) : integer
$value mixed
리턴 integer
    public static function getInt($value)
    {
        if (Inspekt::isArrayOrArrayObject($value)) {
            return Inspekt::walkArray($value, 'getInt');
        } else {
            return (int) $value;
        }
    }

Usage Example

예제 #1
0
 /**
  * Generated from @assert ('A1)45@*(&UR)HQ)W.0000(*(HG))') === 0.
  */
 public function testGetInt2()
 {
     $this->assertSame(0, Inspekt::getInt('A1)45@*(&UR)HQ)W.0000(*(HG))'));
 }