PHP Класс Assert\InvalidArgumentException

Наследование: extends InvalidArgumentException, implements assert\AssertionFailedException
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__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