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