PHP 클래스 Assert\InvalidArgumentException

상속: extends InvalidArgumentException, implements assert\AssertionFailedException
파일 보기 프로젝트 열기: beberlei/assert 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( $message, $code, $propertyPath = null, $value, array $constraints = [] )
getConstraints ( ) : array Get the constraints that applied to the failed assertion.
getPropertyPath ( ) : string User controlled way to define a sub-property causing the failure of a currently asserted objects.
getValue ( ) : mixed Get the value that caused the assertion to fail.

메소드 상세

__construct() 공개 메소드

public __construct ( $message, $code, $propertyPath = null, $value, array $constraints = [] )
$constraints array

getConstraints() 공개 메소드

Get the constraints that applied to the failed assertion.
public getConstraints ( ) : array
리턴 array

getPropertyPath() 공개 메소드

Useful to transport information about the nature of the error back to higher layers.
public getPropertyPath ( ) : string
리턴 string

getValue() 공개 메소드

Get the value that caused the assertion to fail.
public getValue ( ) : mixed
리턴 mixed