commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
CustomerSearchIndexingStatusResponseBuilder.php
1<?php
2
3declare(strict_types=1);
10
16use DateTimeImmutable;
17use stdClass;
18
23{
28 private $status;
29
34 private $states;
35
40 private $startedAt;
41
46 private $lastModifiedAt;
47
52 private $retryCount;
53
60 public function getStatus()
61 {
62 return $this->status;
63 }
64
71 public function getStates()
72 {
73 return $this->states instanceof CustomerIndexingProgressBuilder ? $this->states->build() : $this->states;
74 }
75
82 public function getStartedAt()
83 {
84 return $this->startedAt;
85 }
86
93 public function getLastModifiedAt()
94 {
95 return $this->lastModifiedAt;
96 }
97
104 public function getRetryCount()
105 {
106 return $this->retryCount;
107 }
108
113 public function withStatus(?string $status)
114 {
115 $this->status = $status;
116
117 return $this;
118 }
119
124 public function withStates(?CustomerIndexingProgress $states)
125 {
126 $this->states = $states;
127
128 return $this;
129 }
130
135 public function withStartedAt(?DateTimeImmutable $startedAt)
136 {
137 $this->startedAt = $startedAt;
138
139 return $this;
140 }
141
146 public function withLastModifiedAt(?DateTimeImmutable $lastModifiedAt)
147 {
148 $this->lastModifiedAt = $lastModifiedAt;
149
150 return $this;
151 }
152
157 public function withRetryCount(?int $retryCount)
158 {
159 $this->retryCount = $retryCount;
160
161 return $this;
162 }
163
169 {
170 $this->states = $states;
171
172 return $this;
173 }
174
176 {
178 $this->status,
179 $this->states instanceof CustomerIndexingProgressBuilder ? $this->states->build() : $this->states,
180 $this->startedAt,
181 $this->lastModifiedAt,
182 $this->retryCount
183 );
184 }
185
187 {
188 return new self();
189 }
190}