Trait TypeAssert
Argument type assertion methods
Direct Known Users
Teto\Object\TypedProperty
Namespace: Teto\Object
Copyright: 2016 Baguette HQ
License: http://www.apache.org/licenses/LICENSE-2.0
Author: USAMI Kenta tadsan@zonu.me
Located at Object/TypeAssert.php
Copyright: 2016 Baguette HQ
License: http://www.apache.org/licenses/LICENSE-2.0
Author: USAMI Kenta tadsan@zonu.me
Located at Object/TypeAssert.php
protected static
|
#
assertValue( string $expected_type, string $name, mixed $value, boolean $is_nullable )
Assert a value is expected typed |
protected static
|
|
protected static
|
|
protected static
|
#
assertArrayOrObject( mixed $value, string $name = null )
Assert a value is array or array like object (that inplements ArrayAccess) |
protected static
|
#
assertInstanceOf( mixed $value, string $class, string $name = null )
Assert a value is instance of $class |