PHP 인터페이스 nspl\args\Constraint

파일 보기 프로젝트 열기: ihor/Nspl

공개 메소드들

메소드 설명
__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