| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | public function __construct(FieldsAwareDefinitionInterface $object, FieldDefinition $field, $message = null) |
||
| 19 | { |
||
| 20 | if (!$message) { |
||
| 21 | $message = sprintf( |
||
| 22 | 'Does not have enough permissions to get %s.%s.', |
||
| 23 | $object->getName(), |
||
| 24 | $field->getName() |
||
| 25 | ); |
||
| 26 | } |
||
| 27 | parent::__construct($message); |
||
| 28 | } |
||
| 30 |