1 | <?php |
||
15 | final class Autowire |
||
16 | { |
||
17 | /** |
||
18 | * Delegation target |
||
19 | * |
||
20 | * @var mixed |
||
21 | */ |
||
22 | private $alias; |
||
23 | |||
24 | /** |
||
25 | * Autowire constructor. |
||
26 | * |
||
27 | * @param string $alias |
||
28 | */ |
||
29 | public function __construct(string $alias) |
||
33 | |||
34 | /** |
||
35 | * @param \Interop\Container\ContainerInterface $container |
||
36 | * |
||
37 | * @return mixed |
||
38 | * |
||
39 | * @throws \Interop\Container\Exception\NotFoundException No entry was found for this |
||
40 | * identifier. |
||
41 | * @throws \Interop\Container\Exception\ContainerException Error while retrieving the entry. |
||
42 | */ |
||
43 | public function resolve(ContainerInterface $container) |
||
47 | |||
48 | /** |
||
49 | * @param $an_array |
||
50 | * |
||
51 | * @return static |
||
52 | */ |
||
53 | public static function __set_state($an_array) |
||
57 | } |