Méthode |
Description |
|
__callStatic ( string $method, array $args ) : boolean | mixed |
static call handler to implement:
- "null or assertion" delegation
- "all" delegation |
|
alnum ( mixed $value, string | null $message = null, string | null $propertyPath = null ) : boolean |
Assert that value is alphanumeric. |
|
between ( mixed $value, mixed $lowerLimit, mixed $upperLimit, string $message = null, string $propertyPath = null ) : boolean |
Assert that a value is greater or equal than a lower limit, and less than or equal to an upper limit. |
|
betweenExclusive ( mixed $value, mixed $lowerLimit, mixed $upperLimit, string $message = null, string $propertyPath = null ) : boolean |
Assert that a value is greater than a lower limit, and less than an upper limit. |
|
betweenLength ( mixed $value, integer $minLength, integer $maxLength, string | null $message = null, string | null $propertyPath = null, string $encoding = 'utf8' ) : boolean |
Assert that string length is between min,max lengths. |
|
boolean ( mixed $value, string | null $message = null, string | null $propertyPath = null ) : boolean |
Assert that value is php boolean |
|
choice ( mixed $value, array $choices, string | null $message = null, string | null $propertyPath = null ) : boolean |
Assert that value is in array of choices. |
|
choicesNotEmpty ( array $values, array $choices, null $message = null, null $propertyPath = null ) : boolean |
Determines if the values array has every choice as key and that this choice has content. |
|
classExists ( mixed $value, string | null $message = null, string | null $propertyPath = null ) : boolean |
Assert that the class exists. |
|
contains ( mixed $string, string $needle, string | null $message = null, string | null $propertyPath = null, string $encoding = 'utf8' ) : boolean |
Assert that string contains a sequence of chars. |
|
count ( array | Countable $countable, integer $count, string $message = null, string $propertyPath = null ) : boolean |
Assert that the count of countable is equal to count. |
|
date ( string $value, string $format, string | null $message = null, string | null $propertyPath = null ) : boolean |
Assert that date is valid and corresponds to the given format. |
|
digit ( mixed $value, string | null $message = null, string | null $propertyPath = null ) : boolean |
Validates if an integer or integerish is a digit. |
|
directory ( string $value, string | null $message = null, string | null $propertyPath = null ) : boolean |
Assert that a directory exists |
|
e164 ( string $value, string | null $message = null, string | null $propertyPath = null ) : boolean |
Assert that the given string is a valid E164 Phone Number |
|
email ( mixed $value, string | null $message = null, string | null $propertyPath = null ) : boolean |
Assert that value is an email adress (using input_filter/FILTER_VALIDATE_EMAIL). |
|
endsWith ( mixed $string, string $needle, string | null $message = null, string | null $propertyPath = null, string $encoding = 'utf8' ) : boolean |
Assert that string ends with a sequence of chars. |
|
eq ( mixed $value, mixed $value2, string | null $message = null, string | null $propertyPath = null ) : boolean |
Assert that two values are equal (using == ). |
|
false ( mixed $value, string | null $message = null, string | null $propertyPath = null ) : boolean |
Assert that the value is boolean False. |
|
file ( string $value, string | null $message = null, string | null $propertyPath = null ) : boolean |
Assert that a file exists |
|
float ( mixed $value, string | null $message = null, string | null $propertyPath = null ) : boolean |
Assert that value is a php float. |
|
greaterOrEqualThan ( mixed $value, mixed $limit, null $message = null, null $propertyPath = null ) : boolean |
Determines if the value is greater or equal than given limit. |
|
greaterThan ( mixed $value, mixed $limit, null $message = null, null $propertyPath = null ) : boolean |
Determines if the value is greater than given limit. |
|
implementsInterface ( mixed $class, string $interfaceName, string | null $message = null, string | null $propertyPath = null ) : boolean |
Assert that the class implements the interface |
|
inArray ( mixed $value, array $choices, string | null $message = null, string | null $propertyPath = null ) : boolean |
Alias of {@see choice()} |
|
integer ( mixed $value, string | null $message = null, string | null $propertyPath = null ) : boolean |
Assert that value is a php integer. |
|
integerish ( mixed $value, string | null $message = null, string | null $propertyPath = null ) : boolean |
Assert that value is a php integer'ish. |
|
interfaceExists ( mixed $value, string | null $message = null, string | null $propertyPath = null ) : boolean |
Assert that the interface exists. |
|
ip ( string $value, null | integer $flag = null, string | null $message = null, string | null $propertyPath = null ) : boolean |
Assert that value is an IPv4 or IPv6 address
(using input_filter/FILTER_VALIDATE_IP). |
|
ipv4 ( string $value, null | integer $flag = null, string | null $message = null, string | null $propertyPath = null ) : boolean |
Assert that value is an IPv4 address
(using input_filter/FILTER_VALIDATE_IP). |
|
ipv6 ( string $value, null | integer $flag = null, string | null $message = null, string | null $propertyPath = null ) : boolean |
Assert that value is an IPv6 address
(using input_filter/FILTER_VALIDATE_IP). |
|
isArray ( mixed $value, string | null $message = null, string | null $propertyPath = null ) : boolean |
Assert that value is an array. |
|
isArrayAccessible ( mixed $value, string | null $message = null, string | null $propertyPath = null ) : boolean |
Assert that value is an array or an array-accessible object. |
|
isCallable ( mixed $value, null $message = null, null $propertyPath = null ) : boolean |
Determines that the provided value is callable. |
|
isInstanceOf ( mixed $value, string $className, string | null $message = null, string | null $propertyPath = null ) : boolean |
Assert that value is instance of given class-name. |
|
isJsonString ( mixed $value, string | null $message = null, string | null $propertyPath = null ) : boolean |
Assert that the given string is a valid json string. |
|
isObject ( mixed $value, null $message = null, null $propertyPath = null ) : boolean |
Determines that the provided value is an object. |
|
isTraversable ( mixed $value, string | null $message = null, string | null $propertyPath = null ) : boolean |
Assert that value is an array or a traversable object. |
|
keyExists ( mixed $value, string | integer $key, string | null $message = null, string | null $propertyPath = null ) : boolean |
Assert that key exists in an array |
|
keyIsset ( mixed $value, string | integer $key, string | null $message = null, string | null $propertyPath = null ) : boolean |
Assert that key exists in an array/array-accessible object using isset() |
|
keyNotExists ( mixed $value, string | integer $key, string | null $message = null, string | null $propertyPath = null ) : boolean |
Assert that key does not exist in an array |
|
length ( mixed $value, integer $length, string | null $message = null, string | null $propertyPath = null, string $encoding = 'utf8' ) : boolean |
Assert that string has a given length. |
|
lessOrEqualThan ( mixed $value, mixed $limit, null $message = null, null $propertyPath = null ) : boolean |
Determines if the value is less or than given limit. |
|
lessThan ( mixed $value, mixed $limit, null $message = null, null $propertyPath = null ) : boolean |
Determines if the value is less than given limit. |
|
max ( mixed $value, mixed $maxValue, string | null $message = null, string | null $propertyPath = null ) : boolean |
Assert that a number is smaller as a given limit |
|
maxLength ( mixed $value, integer $maxLength, string | null $message = null, string | null $propertyPath = null, string $encoding = 'utf8' ) : boolean |
Assert that string value is not longer than $maxLength chars. |
|
methodExists ( string $value, mixed $object, null $message = null, null $propertyPath = null ) : boolean |
Determines that the named method is defined in the provided object. |
|
min ( mixed $value, mixed $minValue, string | null $message = null, string | null $propertyPath = null ) : boolean |
Assert that a value is at least as big as a given limit |
|
minLength ( mixed $value, integer $minLength, string | null $message = null, string | null $propertyPath = null, string $encoding = 'utf8' ) : boolean |
Assert that a string is at least $minLength chars long. |
|
noContent ( mixed $value, string | null $message = null, string | null $propertyPath = null ) : boolean |
Assert that value is empty |
|
notBlank ( mixed $value, string | null $message = null, string | null $propertyPath = null ) : boolean |
Assert that value is not blank |
|
notEmpty ( mixed $value, string | null $message = null, string | null $propertyPath = null ) : boolean |
Assert that value is not empty |
|
notEmptyKey ( mixed $value, string | integer $key, string | null $message = null, string | null $propertyPath = null ) : boolean |
Assert that key exists in an array/array-accessible object and it's value is not empty. |
|
notEq ( mixed $value1, mixed $value2, string | null $message = null, string | null $propertyPath = null ) : boolean |
Assert that two values are not equal (using == ). |
|
notInArray ( mixed $value, array $choices, string | null $message = null, string | null $propertyPath = null ) : boolean |
Assert that value is not in array of choices. |
|
notIsInstanceOf ( mixed $value, string $className, string | null $message = null, string | null $propertyPath = null ) : boolean |
Assert that value is not instance of given class-name. |
|
notNull ( mixed $value, string | null $message = null, string | null $propertyPath = null ) : boolean |
Assert that value is not null |
|
notSame ( mixed $value1, mixed $value2, string | null $message = null, string | null $propertyPath = null ) : boolean |
Assert that two values are not the same (using === ). |
|
null ( mixed $value, string | null $message = null, string | null $propertyPath = null ) : boolean |
Assert that value is null |
|
numeric ( mixed $value, string | null $message = null, string | null $propertyPath = null ) : boolean |
Assert that value is numeric. |
|
range ( mixed $value, integer $minValue, integer $maxValue, string | null $message = null, string | null $propertyPath = null ) : boolean |
Assert that value is in range of numbers. |
|
readable ( string $value, string | null $message = null, string | null $propertyPath = null ) : boolean |
Assert that the value is something readable |
|
regex ( mixed $value, string $pattern, string | null $message = null, string | null $propertyPath = null ) : boolean |
Assert that value matches a regex |
|
same ( mixed $value, mixed $value2, string | null $message = null, string | null $propertyPath = null ) : boolean |
Assert that two values are the same (using ===). |
|
satisfy ( mixed $value, callable $callback, string | null $message = null, string | null $propertyPath = null ) : boolean |
Assert that the provided value is valid according to a callback. |
|
scalar ( mixed $value, string | null $message = null, string | null $propertyPath = null ) : boolean |
Assert that value is a PHP scalar |
|
startsWith ( mixed $string, string $needle, string | null $message = null, string | null $propertyPath = null, string $encoding = 'utf8' ) : boolean |
Assert that string starts with a sequence of chars. |
|
string ( mixed $value, string | null $message = null, string | null $propertyPath = null ) : boolean |
Assert that value is a string |
|
subclassOf ( mixed $value, string $className, string | null $message = null, string | null $propertyPath = null ) : boolean |
Assert that value is subclass of given class-name. |
|
true ( mixed $value, string | null $message = null, string | null $propertyPath = null ) : boolean |
Assert that the value is boolean True. |
|
url ( mixed $value, string | null $message = null, string | null $propertyPath = null ) : boolean |
Assert that value is an URL. |
|
uuid ( string $value, string | null $message = null, string | null $propertyPath = null ) : boolean |
Assert that the given string is a valid UUID |
|
writeable ( string $value, string | null $message = null, string | null $propertyPath = null ) : boolean |
Assert that the value is something writeable |
|