n2n Page Rocket 1 API

n2n\reflection\property

­Type­Constraint

TypeConstraint

Methods summary

Modifier and Type Method
protected __construct ( string typeName = null , string allowsNull = true , TypeConstraint arrayFieldTypeConstraints = null , array whitelistTypes = array )
public string getTypeName ( )
public isArrayLike ( )
public boolean allowsNull ( )
public TypeConstraint getArrayFieldTypeConstraint ( )
public isValueValid ( unknown value )
public validate ( mixed value )
public isEmpty ( )
public isPassableTo ( TypeConstraint constraints , unknown ignoreNullAllowed = false )
public isPassableBy ( TypeConstraint constraints , unknown ignoreNullAllowed = false )
public getLenientCopy ( )
public __toString ( )
public static TypeConstraint createFromParameter ( ReflectionParameter parameter )
public static createSimple ( unknown type , bool allowsNull = true , array whitelistTypes = array )
public static createArrayLike ( unknown type , bool allowsNull = true , TypeConstraint arrayFieldTypeConstraints = null , array whitelistTypes = array )
public static isValueA ( unknown value , unknown expectedType , bool nullAllowed )
public static isTypeA ( unknown type , unknown expectedType )

Methods in detail