-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathApiClientPagedQueryResponse.php
More file actions
90 lines (71 loc) · 2.17 KB
/
Copy pathApiClientPagedQueryResponse.php
File metadata and controls
90 lines (71 loc) · 2.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<?php
declare(strict_types=1);
/**
* This file has been auto generated
* Do not change it.
*/
namespace Commercetools\Api\Models\ApiClient;
use Commercetools\Base\DateTimeImmutableCollection;
use Commercetools\Base\JsonObject;
interface ApiClientPagedQueryResponse extends JsonObject
{
public const FIELD_LIMIT = 'limit';
public const FIELD_OFFSET = 'offset';
public const FIELD_COUNT = 'count';
public const FIELD_TOTAL = 'total';
public const FIELD_RESULTS = 'results';
/**
* <p>Number of <a href="/api/general-concepts#limit">results requested</a>.</p>
*
* @return null|int
*/
public function getLimit();
/**
* <p>Number of <a href="/api/general-concepts#offset">elements skipped</a>.</p>
*
* @return null|int
*/
public function getOffset();
/**
* <p>Actual number of results returned.</p>
*
* @return null|int
*/
public function getCount();
/**
* <p>Total number of results matching the query.
* This number is an estimation that is not <a href="/api/general-concepts#strong-consistency">strongly consistent</a>.
* This field is returned by default.
* For improved performance, calculating this field can be deactivated by using the query parameter <code>withTotal=false</code>.
* When the results are filtered with a <a href="/api/predicates/query">Query Predicate</a>, <code>total</code> is subject to a <a href="/api/limits#queries">limit</a>.</p>
*
* @return null|int
*/
public function getTotal();
/**
* <p>APIClients matching the query.</p>
*
* @return null|ApiClientCollection
*/
public function getResults();
/**
* @param ?int $limit
*/
public function setLimit(?int $limit): void;
/**
* @param ?int $offset
*/
public function setOffset(?int $offset): void;
/**
* @param ?int $count
*/
public function setCount(?int $count): void;
/**
* @param ?int $total
*/
public function setTotal(?int $total): void;
/**
* @param ?ApiClientCollection $results
*/
public function setResults(?ApiClientCollection $results): void;
}