1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace DMT\WebservicesNl\Client\Model; |
4
|
|
|
|
5
|
|
|
use JMS\Serializer\Annotation as JMS; |
6
|
|
|
|
7
|
|
|
/** |
8
|
|
|
* Class ResultInfo |
9
|
|
|
* |
10
|
|
|
* @JMS\AccessType("public_method") |
11
|
|
|
*/ |
12
|
|
|
class ResultInfo |
13
|
|
|
{ |
14
|
|
|
/** |
15
|
|
|
* @JMS\SerializedName("curpage") |
16
|
|
|
* @JMS\Type("integer") |
17
|
|
|
* @JMS\XmlElement(cdata=false) |
18
|
|
|
* |
19
|
|
|
* @var int |
20
|
|
|
*/ |
21
|
|
|
protected $currentPage; |
22
|
|
|
|
23
|
|
|
/** |
24
|
|
|
* @JMS\SerializedName("perpage") |
25
|
|
|
* @JMS\Type("integer") |
26
|
|
|
* @JMS\XmlElement(cdata=false) |
27
|
|
|
* |
28
|
|
|
* @var int |
29
|
|
|
*/ |
30
|
|
|
protected $itemsPerPage; |
31
|
|
|
|
32
|
|
|
/** |
33
|
|
|
* @JMS\SerializedName("numpages") |
34
|
|
|
* @JMS\Type("integer") |
35
|
|
|
* @JMS\XmlElement(cdata=false) |
36
|
|
|
* |
37
|
|
|
* @var int |
38
|
|
|
*/ |
39
|
|
|
protected $numPages; |
40
|
|
|
|
41
|
|
|
/** |
42
|
|
|
* @JMS\SerializedName("numresults") |
43
|
|
|
* @JMS\Type("integer") |
44
|
|
|
* @JMS\XmlElement(cdata=false) |
45
|
|
|
* |
46
|
|
|
* @var int |
47
|
|
|
*/ |
48
|
|
|
protected $numResults; |
49
|
|
|
|
50
|
|
|
/** |
51
|
|
|
* @JMS\SerializedName("maxresults") |
52
|
|
|
* @JMS\Type("integer") |
53
|
|
|
* @JMS\XmlElement(cdata=false) |
54
|
|
|
* |
55
|
|
|
* @var int |
56
|
|
|
*/ |
57
|
|
|
protected $maxResults; |
58
|
|
|
|
59
|
|
|
/** |
60
|
|
|
* @return int |
61
|
|
|
*/ |
62
|
2 |
|
public function getCurrentPage(): int |
63
|
|
|
{ |
64
|
2 |
|
return $this->currentPage; |
65
|
|
|
} |
66
|
|
|
|
67
|
|
|
/** |
68
|
|
|
* @param int $currentPage |
69
|
|
|
*/ |
70
|
2 |
|
public function setCurrentPage(int $currentPage): void |
71
|
|
|
{ |
72
|
2 |
|
$this->currentPage = $currentPage; |
73
|
2 |
|
} |
74
|
|
|
|
75
|
|
|
/** |
76
|
|
|
* @return int |
77
|
|
|
*/ |
78
|
2 |
|
public function getItemsPerPage(): int |
79
|
|
|
{ |
80
|
2 |
|
return $this->itemsPerPage; |
81
|
|
|
} |
82
|
|
|
|
83
|
|
|
/** |
84
|
|
|
* @param int $itemsPerPage |
85
|
|
|
*/ |
86
|
2 |
|
public function setItemsPerPage(int $itemsPerPage): void |
87
|
|
|
{ |
88
|
2 |
|
$this->itemsPerPage = $itemsPerPage; |
89
|
2 |
|
} |
90
|
|
|
|
91
|
|
|
/** |
92
|
|
|
* @return int |
93
|
|
|
*/ |
94
|
2 |
|
public function getNumPages(): int |
95
|
|
|
{ |
96
|
2 |
|
return $this->numPages; |
97
|
|
|
} |
98
|
|
|
|
99
|
|
|
/** |
100
|
|
|
* @param int $numPages |
101
|
|
|
*/ |
102
|
2 |
|
public function setNumPages(int $numPages): void |
103
|
|
|
{ |
104
|
2 |
|
$this->numPages = $numPages; |
105
|
2 |
|
} |
106
|
|
|
|
107
|
|
|
/** |
108
|
|
|
* @return int |
109
|
|
|
*/ |
110
|
2 |
|
public function getNumResults(): int |
111
|
|
|
{ |
112
|
2 |
|
return $this->numResults; |
113
|
|
|
} |
114
|
|
|
|
115
|
|
|
/** |
116
|
|
|
* @param int $numResults |
117
|
|
|
*/ |
118
|
2 |
|
public function setNumResults(int $numResults): void |
119
|
|
|
{ |
120
|
2 |
|
$this->numResults = $numResults; |
121
|
2 |
|
} |
122
|
|
|
|
123
|
|
|
/** |
124
|
|
|
* @return int |
125
|
|
|
*/ |
126
|
2 |
|
public function getMaxResults(): int |
127
|
|
|
{ |
128
|
2 |
|
return $this->maxResults; |
129
|
|
|
} |
130
|
|
|
|
131
|
|
|
/** |
132
|
|
|
* @param int $maxResults |
133
|
|
|
*/ |
134
|
2 |
|
public function setMaxResults(int $maxResults): void |
135
|
|
|
{ |
136
|
2 |
|
$this->maxResults = $maxResults; |
137
|
2 |
|
} |
138
|
|
|
} |
139
|
|
|
|