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