| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 31 | public function __invoke(array $attributes): self |
||
| 32 | { |
||
| 33 | if (!($attributes['label'] ?? false)) { |
||
| 34 | throw new \RuntimeException('Attribute \'label\' must be set to use ' . __CLASS__, 1606478090); |
||
| 35 | } |
||
| 36 | |||
| 37 | $this->identifier = $attributes['identifier']; |
||
| 38 | $this->label = $attributes['label']; |
||
| 39 | return $this; |
||
| 40 | } |
||
| 57 |