Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
|
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.