Moodle PHP Documentation 4.3
Moodle 4.3.5 (Build: 20240610) (7dcfaa79f78)
Assert\InvalidArgumentException Class Reference
Inheritance diagram for Assert\InvalidArgumentException:
Assert\AssertionFailedException

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.
 

Member Function Documentation

◆ getConstraints()

Assert\InvalidArgumentException::getConstraints ( )

Get the constraints that applied to the failed assertion.

Return values
array

Implements Assert\AssertionFailedException.

◆ getPropertyPath()

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.

Return values
string|null

Implements Assert\AssertionFailedException.

◆ getValue()

Assert\InvalidArgumentException::getValue ( )

Get the value that caused the assertion to fail.

Return values
mixed

Implements Assert\AssertionFailedException.


The documentation for this class was generated from the following file: