| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | 4 | public function __construct(Attribute $definition, $value) |
|
| 27 | { |
||
| 28 | 4 | $this->definition = $definition; |
|
| 29 | |||
| 30 | 4 | $message = sprintf( |
|
| 31 | 4 | 'Attribute "%s" declared as many (an iterable container) contains %s which cannot be iterated.', |
|
| 32 | 4 | $definition->getName(), |
|
| 33 | 4 | $this->resolveTypeDescription($value) |
|
| 34 | ); |
||
| 35 | |||
| 36 | 4 | parent::__construct($message); |
|
| 37 | 4 | } |
|
| 38 | |||
| 69 | } |