| Conditions | 3 |
| Paths | 3 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | public function get($id) |
||
| 27 | { |
||
| 28 | if (!$this->offsetExists($id)) { |
||
| 29 | throw new ContainerValueNotFoundException(sprintf('Identifier "%s" is not defined.', $id)); |
||
| 30 | } |
||
| 31 | try { |
||
| 32 | return $this->offsetGet($id); |
||
| 33 | } catch (\InvalidArgumentException $exception) { |
||
| 34 | throw new ContainerException(sprintf('Container error while retrieving "%s"', $id), |
||
| 35 | null, |
||
| 36 | $exception |
||
| 37 | ); |
||
| 38 | } |
||
| 39 | } |
||
| 40 | |||
| 72 | } |