| Total Complexity | 3 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class ThemeExistsException extends BaseException |
||
| 9 | { |
||
| 10 | const CODE = '0103'; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * Define as configuração para enviar o exception |
||
| 14 | * |
||
| 15 | * @param string $name |
||
| 16 | */ |
||
| 17 | public function __construct(string $theme) |
||
| 18 | { |
||
| 19 | $this->initialize($theme); |
||
| 20 | } |
||
| 21 | |||
| 22 | /** |
||
| 23 | * {@inheritDoc} |
||
| 24 | */ |
||
| 25 | public function getErrorMessage() : string |
||
| 26 | { |
||
| 27 | return 'The theme [%s] already exists in project.'; |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * {@inheritDoc} |
||
| 32 | */ |
||
| 33 | public function getErrorCode() : string |
||
| 36 | } |
||
| 37 | } |
||
| 38 |