Passed
Branch develop (2fd4b5)
by Alexey
03:23
created

DeveloperBuilder::setIcon()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 4
ccs 3
cts 3
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
declare(strict_types=1);
3
4
/**
5
 * @author   Ne-Lexa
6
 * @license  MIT
7
 * @link     https://github.com/Ne-Lexa/google-play-scraper
8
 */
9
10
namespace Nelexa\GPlay\Model\Builder;
11
12
use Nelexa\GPlay\Model\GoogleImage;
13
14
/**
15
 * Developer Builder.
16
 *
17
 * @internal
18
 */
19
class DeveloperBuilder
20
{
21
    /**
22
     * @var string|null
23
     */
24
    private $id;
25
    /**
26
     * @var string|null
27
     */
28
    private $url;
29
    /**
30
     * @var string|null
31
     */
32
    private $name;
33
    /**
34
     * @var string|null
35
     */
36
    private $description;
37
    /**
38
     * @var string|null
39
     */
40
    private $website;
41
    /**
42
     * @var \Nelexa\GPlay\Model\GoogleImage|null
43
     */
44
    private $icon;
45
    /**
46
     * @var \Nelexa\GPlay\Model\GoogleImage|null
47
     */
48
    private $cover;
49
    /**
50
     * @var string|null
51
     */
52
    private $email;
53
    /**
54
     * @var string|null
55
     */
56
    private $address;
57
58
    /**
59
     * @return string|null
60
     */
61 16
    public function getId(): ?string
62
    {
63 16
        return $this->id;
64
    }
65
66
    /**
67
     * @param string|null $id
68
     * @return DeveloperBuilder
69
     */
70 16
    public function setId(?string $id): DeveloperBuilder
71
    {
72 16
        $this->id = $id;
73 16
        return $this;
74
    }
75
76
    /**
77
     * @return string|null
78
     */
79 16
    public function getUrl(): ?string
80
    {
81 16
        return $this->url;
82
    }
83
84
    /**
85
     * @param string|null $url
86
     * @return DeveloperBuilder
87
     */
88 16
    public function setUrl(?string $url): DeveloperBuilder
89
    {
90 16
        $this->url = $url;
91 16
        return $this;
92
    }
93
94
    /**
95
     * @return string|null
96
     */
97 16
    public function getName(): ?string
98
    {
99 16
        return $this->name;
100
    }
101
102
    /**
103
     * @param string|null $name
104
     * @return DeveloperBuilder
105
     */
106 16
    public function setName(?string $name): DeveloperBuilder
107
    {
108 16
        $this->name = $name;
109 16
        return $this;
110
    }
111
112
    /**
113
     * @return string|null
114
     */
115 16
    public function getDescription(): ?string
116
    {
117 16
        return $this->description;
118
    }
119
120
    /**
121
     * @param string|null $description
122
     * @return DeveloperBuilder
123
     */
124 3
    public function setDescription(?string $description): DeveloperBuilder
125
    {
126 3
        $this->description = $description;
127 3
        return $this;
128
    }
129
130
    /**
131
     * @return string|null
132
     */
133 16
    public function getWebsite(): ?string
134
    {
135 16
        return $this->website;
136
    }
137
138
    /**
139
     * @param string|null $website
140
     * @return DeveloperBuilder
141
     */
142 11
    public function setWebsite(?string $website): DeveloperBuilder
143
    {
144 11
        $this->website = $website;
145 11
        return $this;
146
    }
147
148
    /**
149
     * @return GoogleImage|null
150
     */
151 16
    public function getIcon(): ?GoogleImage
152
    {
153 16
        return $this->icon;
154
    }
155
156
    /**
157
     * @param GoogleImage|null $icon
158
     * @return DeveloperBuilder
159
     */
160 3
    public function setIcon(?GoogleImage $icon): DeveloperBuilder
161
    {
162 3
        $this->icon = $icon;
163 3
        return $this;
164
    }
165
166
    /**
167
     * @return GoogleImage|null
168
     */
169 16
    public function getCover(): ?GoogleImage
170
    {
171 16
        return $this->cover;
172
    }
173
174
    /**
175
     * @param GoogleImage|null $cover
176
     * @return DeveloperBuilder
177
     */
178 3
    public function setCover(?GoogleImage $cover): DeveloperBuilder
179
    {
180 3
        $this->cover = $cover;
181 3
        return $this;
182
    }
183
184
    /**
185
     * @return string|null
186
     */
187 16
    public function getEmail(): ?string
188
    {
189 16
        return $this->email;
190
    }
191
192
    /**
193
     * @param string|null $email
194
     * @return DeveloperBuilder
195
     */
196 9
    public function setEmail(?string $email): DeveloperBuilder
197
    {
198 9
        $this->email = $email;
199 9
        return $this;
200
    }
201
202
    /**
203
     * @return string|null
204
     */
205 16
    public function getAddress(): ?string
206
    {
207 16
        return $this->address;
208
    }
209
210
    /**
211
     * @param string|null $address
212
     * @return DeveloperBuilder
213
     */
214 9
    public function setAddress(?string $address): DeveloperBuilder
215
    {
216 9
        $this->address = $address;
217 9
        return $this;
218
    }
219
}
220