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

RequestModel::getType()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 1
cts 1
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
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 17
        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 17
        $this->fields = $fields;
68 17
        $this->franchise = $franchise;
69 17
        $this->addition = $addition;
70 17
        $this->clientSecret = $clientSecret;
71 17
        $this->type = $type;
72 17
    }
73 17
74 17
    public function getType(): string
75
    {
76
        return $this->type;
77
    }
78
79 11
    public function getClientSecret(): string
80
    {
81 11
        return $this->clientSecret;
82
    }
83
84
    public function getClientId(): string
85
    {
86
        return $this->clientId;
87 11
    }
88
89 11
    public function getLocale(): string
90
    {
91
        return $this->locale;
92
    }
93
94
    public function getApi(): string
95 11
    {
96
        return $this->api;
97 11
    }
98
99
    public function getFields(): array
100
    {
101
        return $this->fields;
102
    }
103 11
104
    public function getFranchise(): string
105 11
    {
106
        return $this->franchise;
107
    }
108
109
    public function getRegion(): string
110
    {
111 11
        return $this->region;
112
    }
113 11
114
    public function getAddition(): string
115
    {
116
        return $this->addition;
117
    }
118
}
119