commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
CustomerSearch
CustomerSearchIndexingStatusResponseBuilder.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\CustomerSearch
;
10
11
use
Commercetools\Base\Builder
;
12
use
Commercetools\Base\DateTimeImmutableCollection
;
13
use
Commercetools\Base\JsonObject
;
14
use
Commercetools\Base\JsonObjectModel
;
15
use
Commercetools\Base\MapperFactory
;
16
use DateTimeImmutable;
17
use stdClass;
18
22
final
class
CustomerSearchIndexingStatusResponseBuilder
implements
Builder
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
168
public
function
withStatesBuilder
(?
CustomerIndexingProgressBuilder
$states)
169
{
170
$this->states = $states;
171
172
return
$this;
173
}
174
175
public
function
build
():
CustomerSearchIndexingStatusResponse
176
{
177
return
new
CustomerSearchIndexingStatusResponseModel
(
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
186
public
static
function
of
():
CustomerSearchIndexingStatusResponseBuilder
187
{
188
return
new
self
();
189
}
190
}
Commercetools\Api\Models\CustomerSearch\CustomerIndexingProgressBuilder
Definition:
CustomerIndexingProgressBuilder.php:22
Commercetools\Api\Models\CustomerSearch\CustomerIndexingProgressBuilder\build
build()
Definition:
CustomerIndexingProgressBuilder.php:108
Commercetools\Api\Models\CustomerSearch\CustomerSearchIndexingStatusResponseBuilder
Definition:
CustomerSearchIndexingStatusResponseBuilder.php:23
Commercetools\Api\Models\CustomerSearch\CustomerSearchIndexingStatusResponseBuilder\withRetryCount
withRetryCount(?int $retryCount)
Definition:
CustomerSearchIndexingStatusResponseBuilder.php:157
Commercetools\Api\Models\CustomerSearch\CustomerSearchIndexingStatusResponseBuilder\getStatus
getStatus()
Definition:
CustomerSearchIndexingStatusResponseBuilder.php:60
Commercetools\Api\Models\CustomerSearch\CustomerSearchIndexingStatusResponseBuilder\of
static of()
Definition:
CustomerSearchIndexingStatusResponseBuilder.php:186
Commercetools\Api\Models\CustomerSearch\CustomerSearchIndexingStatusResponseBuilder\withStates
withStates(?CustomerIndexingProgress $states)
Definition:
CustomerSearchIndexingStatusResponseBuilder.php:124
Commercetools\Api\Models\CustomerSearch\CustomerSearchIndexingStatusResponseBuilder\getStartedAt
getStartedAt()
Definition:
CustomerSearchIndexingStatusResponseBuilder.php:82
Commercetools\Api\Models\CustomerSearch\CustomerSearchIndexingStatusResponseBuilder\withStatus
withStatus(?string $status)
Definition:
CustomerSearchIndexingStatusResponseBuilder.php:113
Commercetools\Api\Models\CustomerSearch\CustomerSearchIndexingStatusResponseBuilder\withLastModifiedAt
withLastModifiedAt(?DateTimeImmutable $lastModifiedAt)
Definition:
CustomerSearchIndexingStatusResponseBuilder.php:146
Commercetools\Api\Models\CustomerSearch\CustomerSearchIndexingStatusResponseBuilder\withStartedAt
withStartedAt(?DateTimeImmutable $startedAt)
Definition:
CustomerSearchIndexingStatusResponseBuilder.php:135
Commercetools\Api\Models\CustomerSearch\CustomerSearchIndexingStatusResponseBuilder\getStates
getStates()
Definition:
CustomerSearchIndexingStatusResponseBuilder.php:71
Commercetools\Api\Models\CustomerSearch\CustomerSearchIndexingStatusResponseBuilder\getLastModifiedAt
getLastModifiedAt()
Definition:
CustomerSearchIndexingStatusResponseBuilder.php:93
Commercetools\Api\Models\CustomerSearch\CustomerSearchIndexingStatusResponseBuilder\withStatesBuilder
withStatesBuilder(?CustomerIndexingProgressBuilder $states)
Definition:
CustomerSearchIndexingStatusResponseBuilder.php:168
Commercetools\Api\Models\CustomerSearch\CustomerSearchIndexingStatusResponseBuilder\build
build()
Definition:
CustomerSearchIndexingStatusResponseBuilder.php:175
Commercetools\Api\Models\CustomerSearch\CustomerSearchIndexingStatusResponseBuilder\getRetryCount
getRetryCount()
Definition:
CustomerSearchIndexingStatusResponseBuilder.php:104
Commercetools\Api\Models\CustomerSearch\CustomerSearchIndexingStatusResponseModel
Definition:
CustomerSearchIndexingStatusResponseModel.php:22
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Base\JsonObjectModel
Definition:
JsonObjectModel.php:15
Commercetools\Base\MapperFactory
Definition:
MapperFactory.php:16
Commercetools\Api\Models\CustomerSearch\CustomerIndexingProgress
Definition:
CustomerIndexingProgress.php:15
Commercetools\Api\Models\CustomerSearch\CustomerSearchIndexingStatusResponse
Definition:
CustomerSearchIndexingStatusResponse.php:16
Commercetools\Base\Builder
Definition:
Builder.php:16
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\CustomerSearch
Definition:
CustomerIndexingProgress.php:9
Generated by
1.9.1