Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
|
Public Member Functions | |
__construct ($message, $code, string $propertyPath=null, $value=null, array $constraints=[]) | |
getConstraints () | |
Get the constraints that applied to the failed assertion. | |
getPropertyPath () | |
User controlled way to define a sub-property causing the failure of a currently asserted objects. | |
getValue () | |
Get the value that caused the assertion to fail. | |
Assert\InvalidArgumentException::getConstraints | ( | ) |
Get the constraints that applied to the failed assertion.
array |
Implements Assert\AssertionFailedException.
Assert\InvalidArgumentException::getPropertyPath | ( | ) |
User controlled way to define a sub-property causing the failure of a currently asserted objects.
Useful to transport information about the nature of the error back to higher layers.
string|null |
Implements Assert\AssertionFailedException.
Assert\InvalidArgumentException::getValue | ( | ) |
Get the value that caused the assertion to fail.
mixed |
Implements Assert\AssertionFailedException.