| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 12 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php | ||
| 10 | public function getClient(): Client | ||
| 11 |     { | ||
| 12 |         if (!$this->client) { | ||
| 13 | $this->setClient(new Client([ | ||
| 14 |                 'base_uri' => sprintf('https://%s.highrisehq.com', $this->getSubdomain()), | ||
| 15 | 'headers' => [ | ||
| 16 | 'User-Agent' => static::HEADER_DEFAULT_USER_AGENT, | ||
| 17 | ], | ||
| 18 | 'auth' => [$this->getToken(), $this->getPassword()] | ||
| 19 | ])); | ||
| 20 | } | ||
| 21 | return $this->client; | ||
| 22 | } | ||
| 30 |