Conditions | 3 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
62 | protected function call($method, $id) |
||
63 | { |
||
64 | if (!$this->container) { |
||
65 | throw new ContainerException('Container not injected'); |
||
66 | } |
||
67 | if (\method_exists($this->container, $method)) { |
||
68 | return $this->container->$method($id); |
||
69 | } |
||
70 | throw new ContainerException('Container method not found: ' . $method); |
||
71 | } |
||
73 |