Total Complexity | 3 |
Total Lines | 21 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | final class EmbeddedPrimaryKeyException extends FieldException implements FriendlyExceptionInterface |
||
12 | { |
||
13 | |||
14 | public function __construct(Entity $embed, string $fieldName) |
||
15 | { |
||
16 | parent::__construct("Entity `{$embed->getRole()}` has conflicted field `{$fieldName}`."); |
||
17 | } |
||
18 | |||
19 | public function getName(): string |
||
20 | { |
||
21 | return 'Embedded entity primary key collision'; |
||
22 | } |
||
23 | |||
24 | public function getSolution(): ?string |
||
32 | } |
||
33 | } |
||
34 |