PHP 클래스 Garden\Exception\ValidationException
The validation object collects errors and is mutable. Once it's ready to be thrown as an exception it gets converted
to an instance of the immutable {@link ValidationException} class.
파일 보기
프로젝트 열기: vanilla/vanilla
보호된 프로퍼티들
공개 메소드들
메소드 |
설명 |
|
__construct ( Validation $validation ) |
Initialize an instance of the {@link ValidationException} class. |
|
jsonSerialize ( ) : mixed |
Specify data which should be serialized to JSON. |
|
메소드 상세
Initialize an instance of the {@link ValidationException} class.
public __construct ( Validation $validation ) |
$validation |
Garden\Validation |
The {@link Validation} object for the exception. |
Specify data which should be serialized to JSON.
public jsonSerialize ( ) : mixed |
리턴 |
mixed |
data which can be serialized by json_encode,
which is a value of any type other than a resource. |
프로퍼티 상세