| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 52 | public function resolve() |
||
| 53 | { |
||
| 54 | if (!$this->container instanceof ContainerInterface) { |
||
|
|
|||
| 55 | throw new ContainerNotSetException( |
||
| 56 | "No container was set for definition. ". |
||
| 57 | "It is not possible to look for alias '{$this->alias}'" |
||
| 58 | ); |
||
| 59 | } |
||
| 60 | |||
| 61 | return $this->container->get($this->alias); |
||
| 62 | } |
||
| 64 |