Total Complexity | 4 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class TagDefinition implements DefinitionInterface |
||
11 | { |
||
12 | private array $references; |
||
13 | |||
14 | public function __construct(array $ids) |
||
15 | { |
||
16 | $this->references = $ids; |
||
17 | } |
||
18 | |||
19 | public function resolve(ContainerInterface $container) |
||
20 | { |
||
21 | $results = []; |
||
22 | foreach ($this->references as $id) { |
||
23 | $results[] = $container->get($id); |
||
24 | } |
||
25 | |||
26 | return $results; |
||
27 | } |
||
28 | |||
29 | public function addReferenceTo(string $id): void |
||
32 | } |
||
33 | } |
||
34 |