Conditions | 3 |
Paths | 3 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 3 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
28 | 3 | public function get($id) |
|
29 | { |
||
30 | 3 | if ($this->container->bound($id)) { |
|
31 | try { |
||
32 | 2 | return $this->container->make($id); |
|
33 | 1 | } catch (\Exception $prev) { |
|
34 | 1 | throw AcclimateContainerException::fromPrevious($id, $prev); |
|
35 | } |
||
36 | } else { |
||
37 | 1 | throw AcclimateNotFoundException::fromPrevious($id); |
|
38 | } |
||
39 | } |
||
40 | |||
46 |