PHP Interface nspl\args\Constraint

Afficher le fichier Open project: ihor/Nspl

Méthodes publiques

Méthode 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 méthode

Returns true if the value satisfies the constraint
public __invoke ( mixed $value ) : boolean
$value mixed
Résultat boolean

__toString() public méthode

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
Résultat string