1 | <?php |
||
26 | class PhotosResponse extends AbstractResponse { |
||
27 | |||
28 | use PageTrait; |
||
29 | use PerPageTrait; |
||
30 | use UrlTrait; |
||
31 | |||
32 | /** |
||
33 | * Next page. |
||
34 | * |
||
35 | * @var string |
||
36 | */ |
||
37 | private $nextPage; |
||
38 | |||
39 | /** |
||
40 | * Photos. |
||
41 | * |
||
42 | * @var Photo[] |
||
43 | */ |
||
44 | private $photos; |
||
45 | |||
46 | /** |
||
47 | * Total results. |
||
48 | * |
||
49 | * @var int |
||
50 | */ |
||
51 | private $totalResults; |
||
52 | |||
53 | public function __construct() { |
||
57 | |||
58 | /** |
||
59 | * Add a photo. |
||
60 | * |
||
61 | * @param Photo $photo The photo. |
||
62 | * @return PhotosResponse Returns this photo response. |
||
63 | */ |
||
64 | public function addPhoto(Photo $photo) { |
||
68 | |||
69 | /** |
||
70 | * Get the next page. |
||
71 | * |
||
72 | * @return string Returns the next page. |
||
73 | */ |
||
74 | public function getNextPage() { |
||
77 | |||
78 | /** |
||
79 | * Get the photos. |
||
80 | * |
||
81 | * @return Photo[] Returns the photos. |
||
82 | */ |
||
83 | public function getPhotos() { |
||
86 | |||
87 | /** |
||
88 | * Get the total results. |
||
89 | * |
||
90 | * @return int Returns the total results. |
||
91 | */ |
||
92 | public function getTotalResults() { |
||
95 | |||
96 | /** |
||
97 | * Set the next page. |
||
98 | * |
||
99 | * @param string $nextPage The next page. |
||
100 | * @return AbstractResponse Returns this response. |
||
101 | */ |
||
102 | public function setNextPage($nextPage) { |
||
106 | |||
107 | /** |
||
108 | * Set the photos. |
||
109 | * |
||
110 | * @param Photo[] $photos The photo. |
||
111 | * @return PhotosResponse Returns this photo response. |
||
112 | */ |
||
113 | protected function setPhotos(array $photos) { |
||
117 | |||
118 | /** |
||
119 | * Set the total results. |
||
120 | * |
||
121 | * @param int $totalResults The total result. |
||
122 | * @return AbstractResponse Returns this response. |
||
123 | */ |
||
124 | public function setTotalResults($totalResults) { |
||
128 | } |
||
129 |