Total Complexity | 2 |
Total Lines | 21 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | class AssetException extends \Exception |
||
22 | { |
||
23 | /** |
||
24 | * @param string $position |
||
25 | * @param string $name |
||
26 | * @return AssetException |
||
27 | * @throws LangException |
||
28 | */ |
||
29 | public static function positionInUse(string $position, string $name): AssetException |
||
30 | { |
||
31 | return new self(t('exception.position_in_use', [$position, $name]), E_WARNING); |
||
32 | } |
||
33 | |||
34 | /** |
||
35 | * @param string|null $name |
||
36 | * @return AssetException |
||
37 | * @throws LangException |
||
38 | */ |
||
39 | public static function nameInUse(?string $name): AssetException |
||
42 | } |
||
43 | } |
||
44 |