Test Setup Failed
Push — master ( 76bea9...67ec1c )
by Willy
05:10
created

AuthenticationModel::getClientId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 0
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
1
<?php
2
3
namespace Kubinashi\BattlenetApi\Model;
4
5
class AuthenticationModel
6
{
7
    /**
8
     * @var string
9
     */
10
    private $clientId;
11
12
    /**
13
     * @var string
14
     */
15
    private $locale;
16
17
    /**
18
     * @var string
19
     */
20
    private $region;
21
22
    /**
23
     * @var string
24
     */
25
    private $clientSecret;
26
27
    public function __construct(string $clientId, string $clientSecret, string $locale, string $region)
28
    {
29
        $this->clientId = $clientId;
30
        $this->clientSecret = $clientSecret;
31
        $this->locale = $locale;
32
        $this->region = $region;
33
    }
34 13
35
    public function getClientSecret(): string
36 13
    {
37 13
        return $this->clientSecret;
38 13
    }
39 13
40
    public function getClientId(): string
41
    {
42
        return $this->clientId;
43
    }
44 9
45
    public function getLocale(): string
46 9
    {
47
        return $this->locale;
48
    }
49
50
    public function getRegion(): string
51
    {
52 9
        return $this->region;
53
    }
54
}
55