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