| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | public static function requiredPropertyMissing(array $properties, Component $component): InvalidComponent |
||
| 11 | { |
||
| 12 | $type = ucfirst(strtolower($component->getComponentType())); |
||
| 13 | |||
| 14 | $properties = implode(', ', $properties); |
||
| 15 | |||
| 16 | return new self("Properties `{$properties}` is required when creating an `{$type}`."); |
||
| 17 | } |
||
| 18 | } |
||
| 19 |