Total Complexity | 4 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | final class ExtensibleService implements DefinitionInterface |
||
13 | { |
||
14 | /** @psalm-var array<string,mixed> */ |
||
15 | private $definition; |
||
16 | private array $extensions = []; |
||
17 | |||
18 | /** @param mixed $definition */ |
||
19 | 2 | public function __construct($definition) |
|
20 | { |
||
21 | 2 | $this->definition = $definition; |
|
22 | 2 | } |
|
23 | |||
24 | 2 | public function addExtension(\Closure $closure): void |
|
25 | { |
||
26 | 2 | $this->extensions[] = $closure; |
|
27 | 2 | } |
|
28 | |||
29 | 2 | public function resolve(DependencyResolverInterface $container) |
|
38 | } |
||
39 | } |
||
40 |