PHP Интерфейс nspl\args\Constraint

Показать файл Открыть проект

Открытые методы

Метод Описание
__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

Описание методов

__invoke() публичный метод

Returns true if the value satisfies the constraint
public __invoke ( mixed $value ) : boolean
$value mixed
Результат boolean

__toString() публичный метод

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
Результат string