1 | <?php declare(strict_types=1); |
||
9 | class DefinitionAggregate implements DefinitionAggregateInterface |
||
10 | { |
||
11 | use ContainerAwareTrait; |
||
12 | |||
13 | /** |
||
14 | * @var \League\Container\Definition\DefinitionInterface[] |
||
15 | */ |
||
16 | protected $definitions = []; |
||
17 | |||
18 | /** |
||
19 | * {@inheritdoc} |
||
20 | */ |
||
21 | public function add(string $id, $definition, bool $shared = false): DefinitionInterface |
||
35 | |||
36 | /** |
||
37 | * {@inheritdoc} |
||
38 | */ |
||
39 | public function has(string $id): bool |
||
49 | |||
50 | /** |
||
51 | * {@inheritdoc} |
||
52 | */ |
||
53 | public function hasTag(string $tag): bool |
||
63 | |||
64 | /** |
||
65 | * {@inheritdoc} |
||
66 | */ |
||
67 | public function getDefinition(string $id): DefinitionInterface |
||
77 | |||
78 | /** |
||
79 | * {@inheritdoc} |
||
80 | */ |
||
81 | public function resolve(string $id, bool $new = false) |
||
85 | |||
86 | /** |
||
87 | * {@inheritdoc} |
||
88 | */ |
||
89 | public function resolveTagged(string $tag, bool $new = false): array |
||
101 | |||
102 | /** |
||
103 | * {@inheritdoc} |
||
104 | */ |
||
105 | public function getIterator(): Generator |
||
113 | } |
||
114 |