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