| Total Complexity | 3 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 23 | class Alias extends AbstractDefinition implements DefinitionInterface |
||
| 24 | { |
||
| 25 | /** |
||
| 26 | * @var string |
||
| 27 | */ |
||
| 28 | protected $alias; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Alias needs a name and the definition name to look for in the container |
||
| 32 | * |
||
| 33 | * @param string $alias |
||
| 34 | */ |
||
| 35 | public function __construct($alias) |
||
| 36 | { |
||
| 37 | $alias = str_replace('@', '', $alias); |
||
| 38 | |||
| 39 | $this->alias = $alias; |
||
| 40 | } |
||
| 41 | 2 | ||
| 42 | /** |
||
| 43 | 2 | * Resolves the definition into a scalar or object |
|
| 44 | * |
||
| 45 | * @return mixed |
||
| 46 | * |
||
| 47 | * @throws NotFoundException No entry was found for alias |
||
| 48 | * in current container. |
||
| 49 | * @throws ContainerNotSetException If no container is set before |
||
| 50 | * calling resolve(). |
||
| 51 | */ |
||
| 52 | public function resolve() |
||
| 62 | } |
||
| 63 | } |
||
| 64 |