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