Conditions | 3 |
Paths | 3 |
Total Lines | 9 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
50 | private function endpointsLister(string $service) : AbstractEndpointsLister |
||
51 | { |
||
52 | switch (self::ENDPOINTS_API) { |
||
53 | case 'catalog': |
||
54 | return (new CatalogServiceEndpoints($this->agent))->service($service); |
||
55 | case 'health': |
||
56 | return (new HealthServiceEndpoints($this->agent))->service($service); |
||
57 | default: |
||
58 | throw new UnknownOptionsException; |
||
59 | } |
||
62 |