| Conditions | 1 |
| Paths | 1 |
| Total Lines | 6 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | 4 | public function __construct(private Entity $entity, string $discriminatorColumn) |
|
| 14 | { |
||
| 15 | 4 | parent::__construct(sprintf( |
|
| 16 | 4 | 'Discriminator column `%s` is not found among fields of the `%s` role.', |
|
| 17 | $discriminatorColumn, |
||
| 18 | 4 | (string) ($this->entity->getRole() ?? $this->entity->getClass()), |
|
| 19 | )); |
||
| 38 |