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 getDefinition(string $id): DefinitionInterface |
||
63 | |||
64 | /** |
||
65 | * {@inheritdoc} |
||
66 | */ |
||
67 | public function resolve(string $id, array $args = [], bool $new = false) |
||
71 | |||
72 | /** |
||
73 | * {@inheritdoc} |
||
74 | */ |
||
75 | public function getIterator(): Generator |
||
83 | } |
||
84 |