1 | <?php |
||
10 | final class Alias |
||
11 | { |
||
12 | private $alias; |
||
13 | |||
14 | /** |
||
15 | * Creates an alias. |
||
16 | * |
||
17 | * @param string $alias The identifier of the container entry that is aliased |
||
18 | */ |
||
19 | public function __construct($alias) |
||
23 | |||
24 | /** |
||
25 | * Returns the identifier of the container entry that is aliased. |
||
26 | * |
||
27 | * @return string |
||
28 | */ |
||
29 | public function getAlias() |
||
33 | |||
34 | /** |
||
35 | * Returns the alias. |
||
36 | * |
||
37 | * @param ContainerInterface $container |
||
38 | * |
||
39 | * @return mixed |
||
40 | */ |
||
41 | public function __invoke(ContainerInterface $container) |
||
45 | } |
||
46 |