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