| 1 | <?php |
||
| 9 | class InvalidArgumentException extends \InvalidArgumentException |
||
| 10 | { |
||
| 11 | /** @var string|null */ |
||
| 12 | private $propertyPath; |
||
| 13 | |||
| 14 | /** @var mixed */ |
||
| 15 | private $value; |
||
| 16 | |||
| 17 | public function __construct($message, int $code = 0, string $propertyPath = null, $value) |
||
| 24 | |||
| 25 | /** |
||
| 26 | * User controlled way to define a sub-property causing |
||
| 27 | * the failure of a currently asserted objects. |
||
| 28 | * |
||
| 29 | * Useful to transport information about the nature of the error |
||
| 30 | * back to higher layers. |
||
| 31 | * |
||
| 32 | * @return string|null |
||
| 33 | */ |
||
| 34 | public function getPropertyPath() |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Get the value that caused the assertion to fail. |
||
| 41 | * |
||
| 42 | * @return mixed |
||
| 43 | */ |
||
| 44 | public function getValue() |
||
| 48 | } |
||
| 49 |