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