DeveloperBuilder::getDescription()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

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