| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 27 | 2 | public function getSolution(): ?string |
|
| 28 | { |
||
| 29 | 2 | $fields = implode('`, `', $this->entity->getFields()->getNames()); |
|
| 30 | |||
| 31 | 2 | return sprintf( |
|
| 32 | 2 | 'You have to specify one of the defined fields of the `%s` role: `%s`', |
|
| 33 | 2 | (string) ($this->entity->getRole() ?? $this->entity->getClass()), |
|
| 34 | $fields, |
||
| 35 | ); |
||
| 38 |