1 | <?php |
||
6 | class InvalidArgumentException extends \InvalidArgumentException |
||
7 | { |
||
8 | /** @var string|null */ |
||
9 | private $propertyPath; |
||
10 | |||
11 | /** @var mixed */ |
||
12 | private $value; |
||
13 | |||
14 | public function __construct($message, int $code = 0, string $propertyPath = null, $value) |
||
21 | |||
22 | /** |
||
23 | * User controlled way to define a sub-property causing |
||
24 | * the failure of a currently asserted objects. |
||
25 | * |
||
26 | * Useful to transport information about the nature of the error |
||
27 | * back to higher layers. |
||
28 | * |
||
29 | * @return string|null |
||
30 | */ |
||
31 | public function getPropertyPath() |
||
35 | |||
36 | /** |
||
37 | * Get the value that caused the assertion to fail. |
||
38 | * |
||
39 | * @return mixed |
||
40 | */ |
||
41 | public function getValue() |
||
45 | } |
||
46 |