Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 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 | } |
||
63 | } |
||
64 |