| Total Complexity | 6 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 5 | class Credentials |
||
| 6 | { |
||
| 7 | private string $host = ''; |
||
| 8 | |||
| 9 | private string $apiKey = ''; |
||
| 10 | |||
| 11 | private string $secret = ''; |
||
| 12 | |||
| 13 | public function setHost(string $host): self |
||
| 14 | { |
||
| 15 | $this->host = $host; |
||
| 16 | return $this; |
||
| 17 | } |
||
| 18 | |||
| 19 | public function getHost(): string |
||
| 20 | { |
||
| 21 | return $this->host; |
||
| 22 | } |
||
| 23 | |||
| 24 | public function setApiKey(string $apiKey): self |
||
| 25 | { |
||
| 26 | $this->apiKey = $apiKey; |
||
| 27 | return $this; |
||
| 28 | } |
||
| 29 | |||
| 30 | public function getApiKey(): string |
||
| 33 | } |
||
| 34 | |||
| 35 | public function setSecret(string $secret): self |
||
| 39 | } |
||
| 40 | |||
| 41 | public function getSecret(): string |
||
| 44 | } |
||
| 45 | } |
||
| 46 |