Validation
implements
Errorable
Table of Contents
Interfaces
- Errorable
Methods
-
__construct()
: mixed
-
getErrorByCode()
: Error|null
-
getErrors()
: array<string|int, mixed>
-
isSuccess()
: bool
-
validate()
: $this
__construct()
public
__construct() : mixed
getErrorByCode()
public
getErrorByCode(mixed $code) : Error|null
Parameters
-
$code
: mixed
-
getErrors()
public
getErrors() : array<string|int, mixed>
Return values
array<string|int, mixed>
isSuccess()
public
isSuccess() : bool
validate()
public
validate(mixed $value, array<string|int, Validator> $validators) : $this
Parameters
-
$value
: mixed
-
-
$validators
: array<string|int, Validator>
-
-
throws
-
ArgumentException