PackageVersion   A
last analyzed

Complexity

Total Complexity 28

Size/Duplication

Total Lines 296
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 28
lcom 0
cbo 0
dl 0
loc 296
rs 10
c 0
b 0
f 0

28 Methods

Rating   Name   Duplication   Size   Complexity  
A getName() 0 4 1
A setName() 0 5 1
A getDescription() 0 4 1
A setDescription() 0 5 1
A getKeywords() 0 4 1
A setKeywords() 0 5 1
A getHomepage() 0 4 1
A setHomepage() 0 5 1
A getVersion() 0 4 1
A setVersion() 0 5 1
A getVersionNormalized() 0 4 1
A setVersionNormalized() 0 5 1
A getLicense() 0 4 1
A setLicense() 0 5 1
A getAuthors() 0 4 1
A setAuthors() 0 5 1
A getSource() 0 4 1
A setSource() 0 5 1
A getDist() 0 4 1
A setDist() 0 5 1
A getType() 0 4 1
A setType() 0 5 1
A getTime() 0 4 1
A setTime() 0 5 1
A getAutoload() 0 4 1
A setAutoload() 0 5 1
A getRequire() 0 4 1
A setRequire() 0 5 1
1
<?php
2
/**
3
 * This file is part of the wow-apps/symfony-packagist project
4
 * https://github.com/wow-apps/symfony-packagist
5
 *
6
 * (c) 2017 WoW-Apps
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace WowApps\PackagistBundle\DTO;
13
14
/**
15
 * Class PackageVersion
16
 *
17
 * @author Alexey Samara <[email protected]>
18
 * @package wow-apps/symfony-packagist
19
 */
20
class PackageVersion
21
{
22
    /** @var string */
23
    private $name;
24
25
    /** @var string */
26
    private $description;
27
28
    /** @var array */
29
    private $keywords;
30
31
    /** @var string */
32
    private $homepage;
33
34
    /** @var string */
35
    private $version;
36
37
    /** @var string */
38
    private $versionNormalized;
39
40
    /** @var string */
41
    private $license;
42
43
    /** @var \ArrayObject|PackageAuthor[] */
44
    private $authors;
45
46
    /** @var PackageSource */
47
    private $source;
48
49
    /** @var PackageDist */
50
    private $dist;
51
52
    /** @var string */
53
    private $type;
54
55
    /** @var string */
56
    private $time;
57
58
    /** @var array */
59
    private $autoload;
60
61
    /** @var \ArrayObject|PackageDependency[] */
62
    private $require;
63
64
    /**
65
     * @return string
66
     */
67
    public function getName(): string
68
    {
69
        return $this->name;
70
    }
71
72
    /**
73
     * @param string $name
74
     * @return PackageVersion
75
     */
76
    public function setName(string $name): PackageVersion
77
    {
78
        $this->name = $name;
79
        return $this;
80
    }
81
82
    /**
83
     * @return string
84
     */
85
    public function getDescription(): string
86
    {
87
        return $this->description;
88
    }
89
90
    /**
91
     * @param string $description
92
     * @return PackageVersion
93
     */
94
    public function setDescription(string $description): PackageVersion
95
    {
96
        $this->description = $description;
97
        return $this;
98
    }
99
100
    /**
101
     * @return array
102
     */
103
    public function getKeywords(): array
104
    {
105
        return $this->keywords;
106
    }
107
108
    /**
109
     * @param array $keywords
110
     * @return PackageVersion
111
     */
112
    public function setKeywords(array $keywords): PackageVersion
113
    {
114
        $this->keywords = $keywords;
115
        return $this;
116
    }
117
118
    /**
119
     * @return string
120
     */
121
    public function getHomepage(): string
122
    {
123
        return $this->homepage;
124
    }
125
126
    /**
127
     * @param string $homepage
128
     * @return PackageVersion
129
     */
130
    public function setHomepage(string $homepage): PackageVersion
131
    {
132
        $this->homepage = $homepage;
133
        return $this;
134
    }
135
136
    /**
137
     * @return string
138
     */
139
    public function getVersion(): string
140
    {
141
        return $this->version;
142
    }
143
144
    /**
145
     * @param string $version
146
     * @return PackageVersion
147
     */
148
    public function setVersion(string $version): PackageVersion
149
    {
150
        $this->version = $version;
151
        return $this;
152
    }
153
154
    /**
155
     * @return string
156
     */
157
    public function getVersionNormalized(): string
158
    {
159
        return $this->versionNormalized;
160
    }
161
162
    /**
163
     * @param string $versionNormalized
164
     * @return PackageVersion
165
     */
166
    public function setVersionNormalized(string $versionNormalized): PackageVersion
167
    {
168
        $this->versionNormalized = $versionNormalized;
169
        return $this;
170
    }
171
172
    /**
173
     * @return string
174
     */
175
    public function getLicense(): string
176
    {
177
        return $this->license;
178
    }
179
180
    /**
181
     * @param string $license
182
     * @return PackageVersion
183
     */
184
    public function setLicense(string $license): PackageVersion
185
    {
186
        $this->license = $license;
187
        return $this;
188
    }
189
190
    /**
191
     * @return \ArrayObject|PackageAuthor[]
192
     */
193
    public function getAuthors()
194
    {
195
        return $this->authors;
196
    }
197
198
    /**
199
     * @param \ArrayObject|PackageAuthor[] $authors
200
     * @return PackageVersion
201
     */
202
    public function setAuthors($authors)
203
    {
204
        $this->authors = $authors;
205
        return $this;
206
    }
207
208
    /**
209
     * @return PackageSource
210
     */
211
    public function getSource(): PackageSource
212
    {
213
        return $this->source;
214
    }
215
216
    /**
217
     * @param PackageSource $source
218
     * @return PackageVersion
219
     */
220
    public function setSource(PackageSource $source): PackageVersion
221
    {
222
        $this->source = $source;
223
        return $this;
224
    }
225
226
    /**
227
     * @return PackageDist
228
     */
229
    public function getDist(): PackageDist
230
    {
231
        return $this->dist;
232
    }
233
234
    /**
235
     * @param PackageDist $dist
236
     * @return PackageVersion
237
     */
238
    public function setDist(PackageDist $dist): PackageVersion
239
    {
240
        $this->dist = $dist;
241
        return $this;
242
    }
243
244
    /**
245
     * @return string
246
     */
247
    public function getType(): string
248
    {
249
        return $this->type;
250
    }
251
252
    /**
253
     * @param string $type
254
     * @return PackageVersion
255
     */
256
    public function setType(string $type): PackageVersion
257
    {
258
        $this->type = $type;
259
        return $this;
260
    }
261
262
    /**
263
     * @return string
264
     */
265
    public function getTime(): string
266
    {
267
        return $this->time;
268
    }
269
270
    /**
271
     * @param string $time
272
     * @return PackageVersion
273
     */
274
    public function setTime(string $time): PackageVersion
275
    {
276
        $this->time = $time;
277
        return $this;
278
    }
279
280
    /**
281
     * @return array
282
     */
283
    public function getAutoload(): array
284
    {
285
        return $this->autoload;
286
    }
287
288
    /**
289
     * @param array $autoload
290
     * @return PackageVersion
291
     */
292
    public function setAutoload(array $autoload): PackageVersion
293
    {
294
        $this->autoload = $autoload;
295
        return $this;
296
    }
297
298
    /**
299
     * @return \ArrayObject|PackageDependency[]
300
     */
301
    public function getRequire()
302
    {
303
        return $this->require;
304
    }
305
306
    /**
307
     * @param \ArrayObject|PackageDependency[] $require
308
     * @return PackageVersion
309
     */
310
    public function setRequire($require)
311
    {
312
        $this->require = $require;
313
        return $this;
314
    }
315
}
316