Test Failed
Push — master ( 67ec1c...f465f8 )
by Willy
06:35
created

RequestModel::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 4
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 RequestModel
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 $api;
21
22
    /**
23
     * @var array
24
     */
25
    private $fields;
26
27
    /**
28
     * @var string
29
     */
30
    private $franchise;
31
32
    /**
33
     * @var string
34
     */
35
    private $region;
36
37
    /**
38
     * @var string
39
     */
40
    private $addition;
41
42
    /**
43
     * @var string
44
     */
45
    private $clientSecret;
46
47
    /**
48
     * @var string
49
     */
50
    private $type;
51
52
    public function __construct(
53
        string $region,
54
        string $clientId,
55
        string $locale,
56
        array $fields,
57
        string $api,
58
        string $franchise,
59
        string $addition,
60
        string $clientSecret,
61
        string $type
62
    ) {
63
        $this->region = $region;
64
        $this->clientId = $clientId;
65
        $this->locale = $locale;
66
        $this->api = $api;
67
        $this->fields = $fields;
68
        $this->franchise = $franchise;
69
        $this->addition = $addition;
70
        $this->clientSecret = $clientSecret;
71
        $this->type = $type;
72
    }
73
74
    public function getType(): string
75
    {
76
        return $this->type;
77
    }
78
79
    public function getClientSecret(): string
80
    {
81
        return $this->clientSecret;
82
    }
83
84
    public function getClientId(): string
85
    {
86
        return $this->clientId;
87
    }
88
89
    public function getLocale(): string
90
    {
91
        return $this->locale;
92
    }
93
94
    public function getApi(): string
95
    {
96
        return $this->api;
97
    }
98
99
    public function getFields(): array
100
    {
101
        return $this->fields;
102
    }
103
104
    public function getFranchise(): string
105
    {
106
        return $this->franchise;
107
    }
108
109
    public function getRegion(): string
110
    {
111
        return $this->region;
112
    }
113
114
    public function getAddition(): string
115
    {
116
        return $this->addition;
117
    }
118
}
119