Conditions | 4 |
Paths | 3 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php namespace zServices\Sintegra; |
||
30 | public function service($service) |
||
31 | { |
||
32 | if (array_key_exists($service, $this->services) && class_exists($this->services[$service])) { |
||
33 | $service = new $this->services[$service]; |
||
34 | |||
35 | if ($service instanceof ServiceInterface) { |
||
36 | return $this->service = $service; |
||
37 | } |
||
38 | } |
||
39 | |||
40 | throw new InvalidService("Portal $service invalid", 1); |
||
41 | } |
||
42 | } |
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.