| Total Complexity | 5 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Coverage | 77.78% |
| Changes | 2 | ||
| Bugs | 2 | Features | 0 |
| 1 | <?php |
||
| 11 | final class SimpleRuleHandlerContainer implements RuleHandlerResolverInterface |
||
| 12 | { |
||
| 13 | private array $instances = []; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @param array<class-string> $handlers List of rule handler classes. |
||
|
|
|||
| 17 | */ |
||
| 18 | 518 | public function __construct(private array $handlers = []) |
|
| 19 | { |
||
| 20 | } |
||
| 21 | |||
| 22 | 27 | public function resolve(string $className): RuleHandlerInterface |
|
| 35 | } |
||
| 36 | } |
||
| 37 |