| Total Complexity | 2 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class HealthServiceEndpoints extends AbstractEndpointsLister |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var string |
||
| 15 | */ |
||
| 16 | protected $uri = '/health/service/:service'; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @param array $endpoint |
||
| 20 | * @return array |
||
| 21 | */ |
||
| 22 | protected function genInfo(array $endpoint) : array |
||
| 23 | { |
||
| 24 | return [ |
||
| 25 | $endpoint['Service']['ID'], |
||
| 26 | $endpoint['Service']['Service'], |
||
| 27 | $endpoint['Service']['Address'], |
||
| 28 | $endpoint['Service']['Port'], |
||
| 29 | $endpoint['Service']['Tags'] |
||
| 30 | ]; |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * add some params in url |
||
| 35 | */ |
||
| 36 | protected function addParams() : void |
||
| 39 | } |
||
| 40 | } |
||
| 41 |