| Total Complexity | 2 |
| Total Lines | 15 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | * Notifies the client code that the class decision could not be made. |
||
| 11 | * |
||
| 12 | * @package Stratadox\Hydrate |
||
| 13 | * @author Stratadox |
||
| 14 | */ |
||
| 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 |
||
| 25 | { |
||
| 47 |