1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace Yandex\Market\Partner\Models; |
4
|
|
|
|
5
|
|
|
use Yandex\Common\Model; |
6
|
|
|
|
7
|
|
|
class Pager extends Model |
8
|
|
|
{ |
9
|
|
|
|
10
|
|
|
protected $total = null; |
11
|
|
|
|
12
|
|
|
protected $from = null; |
13
|
|
|
|
14
|
|
|
protected $to = null; |
15
|
|
|
|
16
|
|
|
protected $pageSize = null; |
17
|
|
|
|
18
|
|
|
protected $pagesCount = null; |
19
|
|
|
|
20
|
|
|
protected $currentPage = null; |
21
|
|
|
|
22
|
|
|
protected $mappingClasses = []; |
23
|
|
|
|
24
|
|
|
protected $propNameMap = []; |
25
|
|
|
|
26
|
|
|
/** |
27
|
|
|
* Retrieve the total property |
28
|
|
|
* |
29
|
|
|
* @return int|null |
30
|
|
|
*/ |
31
|
|
|
public function getTotal() |
32
|
|
|
{ |
33
|
|
|
return $this->total; |
34
|
|
|
} |
35
|
|
|
|
36
|
|
|
/** |
37
|
|
|
* Set the total property |
38
|
|
|
* |
39
|
|
|
* @param int $total |
40
|
|
|
* @return $this |
41
|
|
|
*/ |
42
|
|
|
public function setTotal($total) |
43
|
|
|
{ |
44
|
|
|
$this->total = $total; |
45
|
|
|
return $this; |
46
|
|
|
} |
47
|
|
|
|
48
|
|
|
/** |
49
|
|
|
* Retrieve the from property |
50
|
|
|
* |
51
|
|
|
* @return int|null |
52
|
|
|
*/ |
53
|
1 |
|
public function getFrom() |
54
|
|
|
{ |
55
|
1 |
|
return $this->from; |
56
|
|
|
} |
57
|
|
|
|
58
|
|
|
/** |
59
|
|
|
* Set the from property |
60
|
|
|
* |
61
|
|
|
* @param int $from |
62
|
|
|
* @return $this |
63
|
|
|
*/ |
64
|
|
|
public function setFrom($from) |
65
|
|
|
{ |
66
|
|
|
$this->from = $from; |
67
|
|
|
return $this; |
68
|
|
|
} |
69
|
|
|
|
70
|
|
|
/** |
71
|
|
|
* Retrieve the to property |
72
|
|
|
* |
73
|
|
|
* @return int|null |
74
|
|
|
*/ |
75
|
1 |
|
public function getTo() |
76
|
|
|
{ |
77
|
1 |
|
return $this->to; |
78
|
|
|
} |
79
|
|
|
|
80
|
|
|
/** |
81
|
|
|
* Set the to property |
82
|
|
|
* |
83
|
|
|
* @param int $to |
84
|
|
|
* @return $this |
85
|
|
|
*/ |
86
|
|
|
public function setTo($to) |
87
|
|
|
{ |
88
|
|
|
$this->to = $to; |
89
|
|
|
return $this; |
90
|
|
|
} |
91
|
|
|
|
92
|
|
|
/** |
93
|
|
|
* Retrieve the pageSize property |
94
|
|
|
* |
95
|
|
|
* @return int|null |
96
|
|
|
*/ |
97
|
1 |
|
public function getPageSize() |
98
|
|
|
{ |
99
|
1 |
|
return $this->pageSize; |
100
|
|
|
} |
101
|
|
|
|
102
|
|
|
/** |
103
|
|
|
* Set the pageSize property |
104
|
|
|
* |
105
|
|
|
* @param int $pageSize |
106
|
|
|
* @return $this |
107
|
|
|
*/ |
108
|
|
|
public function setPageSize($pageSize) |
109
|
|
|
{ |
110
|
|
|
$this->pageSize = $pageSize; |
111
|
|
|
return $this; |
112
|
|
|
} |
113
|
|
|
|
114
|
|
|
/** |
115
|
|
|
* Retrieve the pagesCount property |
116
|
|
|
* |
117
|
|
|
* @return int|null |
118
|
|
|
*/ |
119
|
|
|
public function getPagesCount() |
120
|
|
|
{ |
121
|
|
|
return $this->pagesCount; |
122
|
|
|
} |
123
|
|
|
|
124
|
|
|
/** |
125
|
|
|
* Set the pagesCount property |
126
|
|
|
* |
127
|
|
|
* @param int $pagesCount |
128
|
|
|
* @return $this |
129
|
|
|
*/ |
130
|
|
|
public function setPagesCount($pagesCount) |
131
|
|
|
{ |
132
|
|
|
$this->pagesCount = $pagesCount; |
133
|
|
|
return $this; |
134
|
|
|
} |
135
|
|
|
|
136
|
|
|
/** |
137
|
|
|
* Retrieve the currentPage property |
138
|
|
|
* |
139
|
|
|
* @return int|null |
140
|
|
|
*/ |
141
|
1 |
|
public function getCurrentPage() |
142
|
|
|
{ |
143
|
1 |
|
return $this->currentPage; |
144
|
|
|
} |
145
|
|
|
|
146
|
|
|
/** |
147
|
|
|
* Set the currentPage property |
148
|
|
|
* |
149
|
|
|
* @param int $currentPage |
150
|
|
|
* @return $this |
151
|
|
|
*/ |
152
|
|
|
public function setCurrentPage($currentPage) |
153
|
|
|
{ |
154
|
|
|
$this->currentPage = $currentPage; |
155
|
|
|
return $this; |
156
|
|
|
} |
157
|
|
|
} |
158
|
|
|
|