commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
CustomerSearch
CustomerIndexingProgressBuilder.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 stdClass;
17
21
final
class
CustomerIndexingProgressBuilder
implements
Builder
22
{
27
private
$indexed;
28
33
private
$failed;
34
39
private
$estimatedTotal;
40
47
public
function
getIndexed
()
48
{
49
return
$this->indexed;
50
}
51
58
public
function
getFailed
()
59
{
60
return
$this->failed;
61
}
62
69
public
function
getEstimatedTotal
()
70
{
71
return
$this->estimatedTotal;
72
}
73
78
public
function
withIndexed
(?
int
$indexed)
79
{
80
$this->indexed = $indexed;
81
82
return
$this;
83
}
84
89
public
function
withFailed
(?
int
$failed)
90
{
91
$this->failed = $failed;
92
93
return
$this;
94
}
95
100
public
function
withEstimatedTotal
(?
int
$estimatedTotal)
101
{
102
$this->estimatedTotal = $estimatedTotal;
103
104
return
$this;
105
}
106
107
108
public
function
build
():
CustomerIndexingProgress
109
{
110
return
new
CustomerIndexingProgressModel
(
111
$this->indexed,
112
$this->failed,
113
$this->estimatedTotal
114
);
115
}
116
117
public
static
function
of
():
CustomerIndexingProgressBuilder
118
{
119
return
new
self
();
120
}
121
}
Commercetools\Api\Models\CustomerSearch\CustomerIndexingProgressBuilder
Definition:
CustomerIndexingProgressBuilder.php:22
Commercetools\Api\Models\CustomerSearch\CustomerIndexingProgressBuilder\getIndexed
getIndexed()
Definition:
CustomerIndexingProgressBuilder.php:47
Commercetools\Api\Models\CustomerSearch\CustomerIndexingProgressBuilder\getEstimatedTotal
getEstimatedTotal()
Definition:
CustomerIndexingProgressBuilder.php:69
Commercetools\Api\Models\CustomerSearch\CustomerIndexingProgressBuilder\getFailed
getFailed()
Definition:
CustomerIndexingProgressBuilder.php:58
Commercetools\Api\Models\CustomerSearch\CustomerIndexingProgressBuilder\withEstimatedTotal
withEstimatedTotal(?int $estimatedTotal)
Definition:
CustomerIndexingProgressBuilder.php:100
Commercetools\Api\Models\CustomerSearch\CustomerIndexingProgressBuilder\withFailed
withFailed(?int $failed)
Definition:
CustomerIndexingProgressBuilder.php:89
Commercetools\Api\Models\CustomerSearch\CustomerIndexingProgressBuilder\withIndexed
withIndexed(?int $indexed)
Definition:
CustomerIndexingProgressBuilder.php:78
Commercetools\Api\Models\CustomerSearch\CustomerIndexingProgressBuilder\of
static of()
Definition:
CustomerIndexingProgressBuilder.php:117
Commercetools\Api\Models\CustomerSearch\CustomerIndexingProgressBuilder\build
build()
Definition:
CustomerIndexingProgressBuilder.php:108
Commercetools\Api\Models\CustomerSearch\CustomerIndexingProgressModel
Definition:
CustomerIndexingProgressModel.php:21
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\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