Total Complexity | 2 |
Total Lines | 19 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
28 | #[\Attribute(\Attribute::TARGET_PARAMETER)] |
||
29 | final class Tagged |
||
30 | { |
||
31 | private TaggedLocator $value; |
||
32 | |||
33 | /** |
||
34 | * @param string $tag The name of the tag identifying the target services |
||
35 | * @param string|null $indexAttribute The name of the attribute that defines the key referencing each service in the tagged collection |
||
36 | * @param bool $needsIndexes Whether indexes are required and should be generated when computing the map |
||
37 | * @param array<int,string> $exclude Services to exclude from the iterator |
||
38 | */ |
||
39 | public function __construct(string $tag, string $indexAttribute = null, bool $needsIndexes = false, array $exclude = []) |
||
40 | { |
||
41 | $this->value = new TaggedLocator($tag, $indexAttribute, $needsIndexes, $exclude); |
||
42 | } |
||
43 | |||
44 | public function getValues(AbstractContainer $container): array |
||
47 | } |
||
48 | } |
||
49 |