1 | <?php |
||
17 | final class ExceptionContainer implements ContainerInterface |
||
18 | { |
||
19 | /** |
||
20 | * @var ContainerInterface |
||
21 | */ |
||
22 | private $container; |
||
23 | |||
24 | public function __construct(ContainerInterface $container) |
||
28 | |||
29 | public static function create(ContainerInterface $container): self |
||
33 | |||
34 | /** |
||
35 | * Finds an entry of the container by its identifier and returns it. |
||
36 | * |
||
37 | * @param string $id Identifier of the entry to look for. |
||
38 | * |
||
39 | * @throws NotFoundExceptionInterface No entry was found for **this** identifier. |
||
40 | * @throws ContainerExceptionInterface Error while retrieving the entry. |
||
41 | * |
||
42 | * @return mixed Entry. |
||
43 | */ |
||
44 | public function get($id) |
||
59 | |||
60 | /** |
||
61 | * {@inheritdoc} |
||
62 | */ |
||
63 | public function has($id) : bool |
||
67 | |||
68 | public function add(string $id, ValueFactory $factory): ContainerInterface |
||
72 | } |
||
73 |