commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
CustomerPagedSearchResponseBuilder.php
1<?php
2
3declare(strict_types=1);
10
16use stdClass;
17
22{
27 private $total;
28
33 private $limit;
34
39 private $offset;
40
45 private $results;
46
53 public function getTotal()
54 {
55 return $this->total;
56 }
57
64 public function getLimit()
65 {
66 return $this->limit;
67 }
68
75 public function getOffset()
76 {
77 return $this->offset;
78 }
79
86 public function getResults()
87 {
88 return $this->results;
89 }
90
95 public function withTotal(?int $total)
96 {
97 $this->total = $total;
98
99 return $this;
100 }
101
106 public function withLimit(?int $limit)
107 {
108 $this->limit = $limit;
109
110 return $this;
111 }
112
117 public function withOffset(?int $offset)
118 {
119 $this->offset = $offset;
120
121 return $this;
122 }
123
129 {
130 $this->results = $results;
131
132 return $this;
133 }
134
135
137 {
139 $this->total,
140 $this->limit,
141 $this->offset,
142 $this->results
143 );
144 }
145
146 public static function of(): CustomerPagedSearchResponseBuilder
147 {
148 return new self();
149 }
150}