| Total Complexity | 2 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | final class CannotDecideOnAHydrator extends InvalidArgumentException implements CouldNotHydrate |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * Notifies the client code that the decision key found in the input data is |
||
| 19 | * not a key that was registered with the class mapping. |
||
| 20 | * |
||
| 21 | * @param string $hydratorKey The key that was found in the input data. |
||
| 22 | * @return self The exception object. |
||
| 23 | */ |
||
| 24 | public static function withThis(string $hydratorKey) : self |
||
| 29 | )); |
||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Notifies the client code that the field in which the decision key was |
||
| 34 | * expected, does not exist in the input data. |
||
| 35 | * |
||
| 36 | * @param string $decisionKey The key that should contain the decision key. |
||
| 37 | * @return self The exception object. |
||
| 38 | */ |
||
| 39 | public static function without(string $decisionKey) : self |
||
| 47 |