Credentials   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 39
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 6
eloc 13
c 2
b 0
f 0
dl 0
loc 39
rs 10

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getApiKey() 0 3 1
A getHost() 0 3 1
A setApiKey() 0 4 1
A setSecret() 0 4 1
A getSecret() 0 3 1
A setHost() 0 4 1
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