| Total Complexity | 2 |
| Total Lines | 10 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 7 | class StorageException extends RuntimeException |
||
| 8 | { |
||
| 9 | public static function forNotRegisteredRepository(string $class): self |
||
| 10 | { |
||
| 11 | return new self("Entity class ${class} has no repository assigned to it, have you forgot to call Ink::register()?"); |
||
| 12 | } |
||
| 13 | |||
| 14 | public static function forNotRegisteredConnection(string $name): self |
||
| 15 | { |
||
| 16 | return new self("Connection with name ${name} was not registered."); |
||
| 17 | } |
||
| 19 |