Total Complexity | 3 |
Total Lines | 15 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class DuplicateRoleException extends LogicException implements FriendlyExceptionInterface |
||
11 | { |
||
12 | public function __construct(string $role) |
||
13 | { |
||
14 | parent::__construct('The "' . $role . '" role already exists in the DB schema.'); |
||
15 | } |
||
16 | |||
17 | public function getName(): string |
||
18 | { |
||
19 | return 'Duplicate role in the DB schema'; |
||
20 | } |
||
21 | |||
22 | public function getSolution(): ?string |
||
25 | } |
||
26 | } |
||
27 |