| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 36 | public function service(Service $service) : self |
||
| 37 | { |
||
| 38 | $this->service = $service; |
||
| 39 | |||
| 40 | $endpoint = $service->endpoint(); |
||
| 41 | |||
| 42 | $this->setPayload([ |
||
| 43 | 'ID' => $service->id(), |
||
| 44 | 'Name' => $service->name(), |
||
| 45 | 'Tags' => $endpoint->getTags(), |
||
| 46 | 'Address' => $endpoint->address()->host(), |
||
| 47 | 'Port' => $endpoint->address()->port(), |
||
| 48 | 'Check' => $service->getKeepalive(), |
||
| 49 | ]); |
||
| 50 | |||
| 51 | return $this; |
||
| 52 | } |
||
| 64 |