Credentials::getApiKey()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Carpenstar\ByBitAPI\Core\Auth;
4
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
31
    {
32
        return $this->apiKey;
33
    }
34
35
    public function setSecret(string $secret): self
36
    {
37
        $this->secret = $secret;
38
        return $this;
39
    }
40
41
    public function getSecret(): string
42
    {
43
        return $this->secret;
44
    }
45
}
46