Total Complexity | 2 |
Total Lines | 10 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
5 | class MappingException extends StorageException |
||
6 | { |
||
7 | public static function forUnknownMappingStrategy(string $type): MappingException |
||
8 | { |
||
9 | return new self("Unknown mapping strategy - `${type}`. Did you forgot to call Strategy::register()?"); |
||
10 | } |
||
11 | |||
12 | public static function forNonRegisteredSchema(string $entity): MappingException |
||
13 | { |
||
14 | return new self("Entity `${entity}` has no schema assigned."); |
||
15 | } |
||
17 |