PHP Interface nspl\args\Constraint

Datei anzeigen Open project: ihor/Nspl

Public Methods

Method Description
__invoke ( mixed $value ) : boolean Returns true if the value satisfies the constraint
__toString ( ) : string Returns message which will be used in the exception when value doesn't satisfy the constraint The message must contain text which goes after "must" in the exception message

Method Details

__invoke() public method

Returns true if the value satisfies the constraint
public __invoke ( mixed $value ) : boolean
$value mixed
return boolean

__toString() public method

Returns message which will be used in the exception when value doesn't satisfy the constraint The message must contain text which goes after "must" in the exception message
public __toString ( ) : string
return string