| 1 | <?php declare(strict_types=1); |
||
| 10 | class DefinitionAggregate implements DefinitionAggregateInterface |
||
| 11 | { |
||
| 12 | use ContainerAwareTrait; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var \League\Container\Definition\DefinitionInterface[] |
||
| 16 | */ |
||
| 17 | protected $definitions = []; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * {@inheritdoc} |
||
| 21 | */ |
||
| 22 | public function add(string $id, $definition, bool $shared = false): DefinitionInterface |
||
| 36 | |||
| 37 | /** |
||
| 38 | * {@inheritdoc} |
||
| 39 | */ |
||
| 40 | public function resolve(string $id, array $args = [], bool $new = false) |
||
| 50 | |||
| 51 | /** |
||
| 52 | * {@inheritdoc} |
||
| 53 | */ |
||
| 54 | public function getIterator(): Generator |
||
| 62 | } |
||
| 63 |