1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
/* |
4
|
|
|
* This file is part of the pexels-library package. |
5
|
|
|
* |
6
|
|
|
* (c) 2021 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\StringDescriptionTrait; |
15
|
|
|
use WBW\Library\Traits\Strings\StringIdTrait; |
16
|
|
|
use WBW\Library\Traits\Strings\StringRawDataTrait; |
17
|
|
|
use WBW\Library\Traits\Strings\StringTitleTrait; |
18
|
|
|
|
19
|
|
|
/** |
20
|
|
|
* Collection. |
21
|
|
|
* |
22
|
|
|
* @author webeweb <https://github.com/webeweb> |
23
|
|
|
* @package WBW\Library\Pexels\Model |
24
|
|
|
*/ |
25
|
|
|
class Collection { |
26
|
|
|
|
27
|
|
|
use StringDescriptionTrait; |
28
|
|
|
use StringIdTrait; |
29
|
|
|
use StringRawDataTrait; |
30
|
|
|
use StringTitleTrait; |
31
|
|
|
|
32
|
|
|
/** |
33
|
|
|
* Media count. |
34
|
|
|
* |
35
|
|
|
* @var int|null |
36
|
|
|
*/ |
37
|
|
|
private $mediaCount; |
38
|
|
|
|
39
|
|
|
/** |
40
|
|
|
* Photos count. |
41
|
|
|
* |
42
|
|
|
* @var int|null |
43
|
|
|
*/ |
44
|
|
|
private $photosCount; |
45
|
|
|
|
46
|
|
|
/** |
47
|
|
|
* Private. |
48
|
|
|
* |
49
|
|
|
* @var bool|null |
50
|
|
|
*/ |
51
|
|
|
private $private; |
52
|
|
|
|
53
|
|
|
/** |
54
|
|
|
* Videos count. |
55
|
|
|
* |
56
|
|
|
* @var int|null |
57
|
|
|
*/ |
58
|
|
|
private $videosCount; |
59
|
|
|
|
60
|
|
|
/** |
61
|
|
|
* Constructor. |
62
|
|
|
*/ |
63
|
|
|
public function __construct() { |
64
|
|
|
// NOTHING TO DO |
65
|
|
|
} |
66
|
|
|
|
67
|
|
|
/** |
68
|
|
|
* Get the media count. |
69
|
|
|
* |
70
|
|
|
* @return int|null Returns the media count. |
71
|
|
|
*/ |
72
|
|
|
public function getMediaCount(): ?int { |
73
|
|
|
return $this->mediaCount; |
74
|
|
|
} |
75
|
|
|
|
76
|
|
|
/** |
77
|
|
|
* Get the photos count. |
78
|
|
|
* |
79
|
|
|
* @return int|null Returns ths photos count. |
80
|
|
|
*/ |
81
|
|
|
public function getPhotosCount(): ?int { |
82
|
|
|
return $this->photosCount; |
83
|
|
|
} |
84
|
|
|
|
85
|
|
|
/** |
86
|
|
|
* Get the private. |
87
|
|
|
* |
88
|
|
|
* @return bool|null Returns the private. |
89
|
|
|
*/ |
90
|
|
|
public function getPrivate(): ?bool { |
91
|
|
|
return $this->private; |
92
|
|
|
} |
93
|
|
|
|
94
|
|
|
/** |
95
|
|
|
* Get the videos count. |
96
|
|
|
* |
97
|
|
|
* @return int|null Returns the videos count. |
98
|
|
|
*/ |
99
|
|
|
public function getVideosCount(): ?int { |
100
|
|
|
return $this->videosCount; |
101
|
|
|
} |
102
|
|
|
|
103
|
|
|
/** |
104
|
|
|
* Set the media count. |
105
|
|
|
* |
106
|
|
|
* @param int|null $mediaCount The media count. |
107
|
|
|
* @return Collection Returns this collection. |
108
|
|
|
*/ |
109
|
|
|
public function setMediaCount(?int $mediaCount): Collection { |
110
|
|
|
$this->mediaCount = $mediaCount; |
111
|
|
|
return $this; |
112
|
|
|
} |
113
|
|
|
|
114
|
|
|
/** |
115
|
|
|
* Set the photos count. |
116
|
|
|
* |
117
|
|
|
* @param int|null $photosCount The photo count. |
118
|
|
|
* @return Collection Returns this collection. |
119
|
|
|
*/ |
120
|
|
|
public function setPhotosCount(?int $photosCount): Collection { |
121
|
|
|
$this->photosCount = $photosCount; |
122
|
|
|
return $this; |
123
|
|
|
} |
124
|
|
|
|
125
|
|
|
/** |
126
|
|
|
* Set the private. |
127
|
|
|
* |
128
|
|
|
* @param bool|null $private The private. |
129
|
|
|
* @return Collection Returns this collection. |
130
|
|
|
*/ |
131
|
|
|
public function setPrivate(?bool $private): Collection { |
132
|
|
|
$this->private = $private; |
133
|
|
|
return $this; |
134
|
|
|
} |
135
|
|
|
|
136
|
|
|
/** |
137
|
|
|
* Set the videos count. |
138
|
|
|
* |
139
|
|
|
* @param int|null $videosCount The videos count. |
140
|
|
|
* @return Collection Returns this collection. |
141
|
|
|
*/ |
142
|
|
|
public function setVideosCount(?int $videosCount): Collection { |
143
|
|
|
$this->videosCount = $videosCount; |
144
|
|
|
return $this; |
145
|
|
|
} |
146
|
|
|
} |
147
|
|
|
|