| Conditions | 3 |
| Paths | 3 |
| Total Lines | 5 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 3 |
| CRAP Score | 3.1406 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 29 | 2 | private function validateHandlers(): void |
|
| 30 | { |
||
| 31 | 2 | foreach ($this->handlers as $handler) { |
|
| 32 | 2 | if (!$handler instanceof AttributeHandlerInterface) { |
|
| 33 | throw new \InvalidArgumentException(sprintf('Handler must implement AttributeHandlerInterface, got %s.', get_debug_type($handler))); |
||
| 34 | } |
||
| 38 |