|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
/* |
|
4
|
|
|
* This file is part of the pexels-library package. |
|
5
|
|
|
* |
|
6
|
|
|
* (c) 2019 WEBEWEB |
|
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 WBW\Library\Pexels\Model; |
|
13
|
|
|
|
|
14
|
|
|
use WBW\Library\Traits\Strings\StringRawDataTrait; |
|
15
|
|
|
|
|
16
|
|
|
/** |
|
17
|
|
|
* Source. |
|
18
|
|
|
* |
|
19
|
|
|
* @author webeweb <https://github.com/webeweb> |
|
20
|
|
|
* @package WBW\Library\Pexels\Model |
|
21
|
|
|
*/ |
|
22
|
|
|
class Source { |
|
23
|
|
|
|
|
24
|
|
|
use StringRawDataTrait; |
|
25
|
|
|
|
|
26
|
|
|
/** |
|
27
|
|
|
* Landscape. |
|
28
|
|
|
* |
|
29
|
|
|
* @var string|null |
|
30
|
|
|
*/ |
|
31
|
|
|
private $landscape; |
|
32
|
|
|
|
|
33
|
|
|
/** |
|
34
|
|
|
* Large. |
|
35
|
|
|
* |
|
36
|
|
|
* @var string|null |
|
37
|
|
|
*/ |
|
38
|
|
|
private $large; |
|
39
|
|
|
|
|
40
|
|
|
/** |
|
41
|
|
|
* Large 2X. |
|
42
|
|
|
* |
|
43
|
|
|
* @var string|null |
|
44
|
|
|
*/ |
|
45
|
|
|
private $large2x; |
|
46
|
|
|
|
|
47
|
|
|
/** |
|
48
|
|
|
* Medium. |
|
49
|
|
|
* |
|
50
|
|
|
* @var string|null |
|
51
|
|
|
*/ |
|
52
|
|
|
private $medium; |
|
53
|
|
|
|
|
54
|
|
|
/** |
|
55
|
|
|
* Original. |
|
56
|
|
|
* |
|
57
|
|
|
* @var string|null |
|
58
|
|
|
*/ |
|
59
|
|
|
private $original; |
|
60
|
|
|
|
|
61
|
|
|
/** |
|
62
|
|
|
* Portrait. |
|
63
|
|
|
* |
|
64
|
|
|
* @var string|null |
|
65
|
|
|
*/ |
|
66
|
|
|
private $portrait; |
|
67
|
|
|
|
|
68
|
|
|
/** |
|
69
|
|
|
* Small. |
|
70
|
|
|
* |
|
71
|
|
|
* @var string|null |
|
72
|
|
|
*/ |
|
73
|
|
|
private $small; |
|
74
|
|
|
|
|
75
|
|
|
/** |
|
76
|
|
|
* Tiny. |
|
77
|
|
|
* |
|
78
|
|
|
* @var string|null |
|
79
|
|
|
*/ |
|
80
|
|
|
private $tiny; |
|
81
|
70 |
|
|
|
82
|
|
|
/** |
|
83
|
70 |
|
* Constructor. |
|
84
|
|
|
*/ |
|
85
|
|
|
public function __construct() { |
|
86
|
|
|
// NOTHING TO DO |
|
87
|
|
|
} |
|
88
|
|
|
|
|
89
|
|
|
/** |
|
90
|
15 |
|
* Get the landscape. |
|
91
|
15 |
|
* |
|
92
|
|
|
* @return string|null Returns the landscape. |
|
93
|
|
|
*/ |
|
94
|
|
|
public function getLandscape(): ?string { |
|
95
|
|
|
return $this->landscape; |
|
96
|
|
|
} |
|
97
|
|
|
|
|
98
|
|
|
/** |
|
99
|
15 |
|
* Get the large. |
|
100
|
15 |
|
* |
|
101
|
|
|
* @return string|null Returns the large. |
|
102
|
|
|
*/ |
|
103
|
|
|
public function getLarge(): ?string { |
|
104
|
|
|
return $this->large; |
|
105
|
|
|
} |
|
106
|
|
|
|
|
107
|
|
|
/** |
|
108
|
15 |
|
* Get the large 2x. |
|
109
|
15 |
|
* |
|
110
|
|
|
* @return string|null Returns the large 2x. |
|
111
|
|
|
*/ |
|
112
|
|
|
public function getLarge2x(): ?string { |
|
113
|
|
|
return $this->large2x; |
|
114
|
|
|
} |
|
115
|
|
|
|
|
116
|
|
|
/** |
|
117
|
15 |
|
* Get the medium. |
|
118
|
15 |
|
* |
|
119
|
|
|
* @return string|null Returns the medium. |
|
120
|
|
|
*/ |
|
121
|
|
|
public function getMedium(): ?string { |
|
122
|
|
|
return $this->medium; |
|
123
|
|
|
} |
|
124
|
|
|
|
|
125
|
|
|
/** |
|
126
|
15 |
|
* Get the original. |
|
127
|
15 |
|
* |
|
128
|
|
|
* @return string|null Returns the original. |
|
129
|
|
|
*/ |
|
130
|
|
|
public function getOriginal(): ?string { |
|
131
|
|
|
return $this->original; |
|
132
|
|
|
} |
|
133
|
|
|
|
|
134
|
|
|
/** |
|
135
|
15 |
|
* Get the portrait. |
|
136
|
15 |
|
* |
|
137
|
|
|
* @return string|null Returns the portrait. |
|
138
|
|
|
*/ |
|
139
|
|
|
public function getPortrait(): ?string { |
|
140
|
|
|
return $this->portrait; |
|
141
|
|
|
} |
|
142
|
|
|
|
|
143
|
|
|
/** |
|
144
|
15 |
|
* Get the small. |
|
145
|
15 |
|
* |
|
146
|
|
|
* @return string|null Returns the small. |
|
147
|
|
|
*/ |
|
148
|
|
|
public function getSmall(): ?string { |
|
149
|
|
|
return $this->small; |
|
150
|
|
|
} |
|
151
|
|
|
|
|
152
|
|
|
/** |
|
153
|
15 |
|
* Get the tiny. |
|
154
|
15 |
|
* |
|
155
|
|
|
* @return string|null Returns the tiny. |
|
156
|
|
|
*/ |
|
157
|
|
|
public function getTiny(): ?string { |
|
158
|
|
|
return $this->tiny; |
|
159
|
|
|
} |
|
160
|
|
|
|
|
161
|
|
|
/** |
|
162
|
|
|
* Set the landscape. |
|
163
|
25 |
|
* |
|
164
|
25 |
|
* @param string|null $landscape The landscape. |
|
165
|
25 |
|
* @return Source Returns this source. |
|
166
|
|
|
*/ |
|
167
|
|
|
public function setLandscape(?string $landscape): Source { |
|
168
|
|
|
$this->landscape = $landscape; |
|
169
|
|
|
return $this; |
|
170
|
|
|
} |
|
171
|
|
|
|
|
172
|
|
|
/** |
|
173
|
|
|
* Set the large. |
|
174
|
25 |
|
* |
|
175
|
25 |
|
* @param string|null $large The large. |
|
176
|
25 |
|
* @return Source Returns this source. |
|
177
|
|
|
*/ |
|
178
|
|
|
public function setLarge(?string $large): Source { |
|
179
|
|
|
$this->large = $large; |
|
180
|
|
|
return $this; |
|
181
|
|
|
} |
|
182
|
|
|
|
|
183
|
|
|
/** |
|
184
|
|
|
* Set the large 2x. |
|
185
|
25 |
|
* |
|
186
|
25 |
|
* @param string|null $large2x The large 2x. |
|
187
|
25 |
|
* @return Source Returns this source. |
|
188
|
|
|
*/ |
|
189
|
|
|
public function setLarge2x(?string $large2x): Source { |
|
190
|
|
|
$this->large2x = $large2x; |
|
191
|
|
|
return $this; |
|
192
|
|
|
} |
|
193
|
|
|
|
|
194
|
|
|
/** |
|
195
|
|
|
* Set the medium. |
|
196
|
25 |
|
* |
|
197
|
25 |
|
* @param string|null $medium The medium. |
|
198
|
25 |
|
* @return Source Returns this source. |
|
199
|
|
|
*/ |
|
200
|
|
|
public function setMedium(?string $medium): Source { |
|
201
|
|
|
$this->medium = $medium; |
|
202
|
|
|
return $this; |
|
203
|
|
|
} |
|
204
|
|
|
|
|
205
|
|
|
/** |
|
206
|
|
|
* Set the original. |
|
207
|
25 |
|
* |
|
208
|
25 |
|
* @param string|null $original The original. |
|
209
|
25 |
|
* @return Source Returns this source. |
|
210
|
|
|
*/ |
|
211
|
|
|
public function setOriginal(?string $original): Source { |
|
212
|
|
|
$this->original = $original; |
|
213
|
|
|
return $this; |
|
214
|
|
|
} |
|
215
|
|
|
|
|
216
|
|
|
/** |
|
217
|
|
|
* Set the portrait. |
|
218
|
25 |
|
* |
|
219
|
25 |
|
* @param string|null $portrait The portrait. |
|
220
|
25 |
|
* @return Source Returns this source. |
|
221
|
|
|
*/ |
|
222
|
|
|
public function setPortrait(?string $portrait): Source { |
|
223
|
|
|
$this->portrait = $portrait; |
|
224
|
|
|
return $this; |
|
225
|
|
|
} |
|
226
|
|
|
|
|
227
|
|
|
/** |
|
228
|
|
|
* Set the small. |
|
229
|
25 |
|
* |
|
230
|
25 |
|
* @param string|null $small The small. |
|
231
|
25 |
|
* @return Source Returns this source. |
|
232
|
|
|
*/ |
|
233
|
|
|
public function setSmall(?string $small): Source { |
|
234
|
|
|
$this->small = $small; |
|
235
|
|
|
return $this; |
|
236
|
|
|
} |
|
237
|
|
|
|
|
238
|
|
|
/** |
|
239
|
|
|
* Set the tiny. |
|
240
|
25 |
|
* |
|
241
|
25 |
|
* @param string|null $tiny The tiny. |
|
242
|
25 |
|
* @return Source Returns this source. |
|
243
|
|
|
*/ |
|
244
|
|
|
public function setTiny(?string $tiny): Source { |
|
245
|
|
|
$this->tiny = $tiny; |
|
246
|
|
|
return $this; |
|
247
|
|
|
} |
|
248
|
|
|
} |
|
249
|
|
|
|