Total Complexity | 4 |
Total Lines | 39 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
20 | class Discovery |
||
21 | { |
||
22 | use AgentRequired, WRouter, GWatcher; |
||
23 | |||
24 | /** |
||
25 | * [catalog,health] |
||
26 | */ |
||
27 | private const ENDPOINTS_API = 'health'; |
||
28 | |||
29 | /** |
||
30 | * @param string $service |
||
31 | * @param Chan $notify |
||
32 | */ |
||
33 | public function watching(string $service, Chan $notify) : void |
||
44 | } |
||
45 | |||
46 | /** |
||
47 | * @param string $service |
||
48 | * @return AbstractEndpointsLister |
||
49 | */ |
||
50 | private function endpointsLister(string $service) : AbstractEndpointsLister |
||
62 |