Moodle PHP Documentation 4.3
Moodle 4.3.5 (Build: 20240610) (7dcfaa79f78)
|
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.