| Total Complexity | 2 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | trait DIMagicTrait |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * Magic method to get a service. |
||
| 16 | * |
||
| 17 | * @param string $service name of the service. |
||
| 18 | * |
||
| 19 | * @return mixed as the service requested. |
||
| 20 | */ |
||
| 21 | 1 | public function __get($service) |
|
| 22 | { |
||
| 23 | 1 | return $this->get($service); |
|
|
|
|||
| 24 | } |
||
| 25 | |||
| 26 | |||
| 27 | |||
| 28 | /** |
||
| 29 | * Magic method to get and call a service. |
||
| 30 | * |
||
| 31 | * @param string $service name of the service. |
||
| 32 | * @param array $arguments currently NOT USED. |
||
| 33 | * |
||
| 34 | * @return mixed as the service requested. |
||
| 35 | */ |
||
| 36 | 1 | public function __call($service, $arguments = []) |
|
| 39 | } |
||
| 40 | } |
||
| 41 |