commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
lib
commercetools-api
src
Models
CustomerSearch
CustomerIndexingProgressModel.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\CustomerSearch
;
10
11
use
Commercetools\Base\DateTimeImmutableCollection
;
12
use
Commercetools\Base\JsonObject
;
13
use
Commercetools\Base\JsonObjectModel
;
14
use
Commercetools\Base\MapperFactory
;
15
use stdClass;
16
20
final
class
CustomerIndexingProgressModel
extends
JsonObjectModel
implements
CustomerIndexingProgress
21
{
26
protected
$indexed
;
27
32
protected
$failed
;
33
38
protected
$estimatedTotal
;
39
40
44
public
function
__construct
(
45
?
int
$indexed
=
null
,
46
?
int
$failed
=
null
,
47
?
int
$estimatedTotal
=
null
48
) {
49
$this->indexed =
$indexed
;
50
$this->failed =
$failed
;
51
$this->estimatedTotal =
$estimatedTotal
;
52
}
53
60
public
function
getIndexed
()
61
{
62
if
(is_null($this->indexed)) {
64
$data = $this->
raw
(self::FIELD_INDEXED);
65
if
(is_null($data)) {
66
return
null
;
67
}
68
$this->indexed = (int) $data;
69
}
70
71
return
$this->indexed
;
72
}
73
80
public
function
getFailed
()
81
{
82
if
(is_null($this->failed)) {
84
$data = $this->
raw
(self::FIELD_FAILED);
85
if
(is_null($data)) {
86
return
null
;
87
}
88
$this->failed = (int) $data;
89
}
90
91
return
$this->failed
;
92
}
93
100
public
function
getEstimatedTotal
()
101
{
102
if
(is_null($this->estimatedTotal)) {
104
$data = $this->
raw
(self::FIELD_ESTIMATED_TOTAL);
105
if
(is_null($data)) {
106
return
null
;
107
}
108
$this->estimatedTotal = (int) $data;
109
}
110
111
return
$this->estimatedTotal
;
112
}
113
114
118
public
function
setIndexed
(?
int
$indexed
): void
119
{
120
$this->indexed =
$indexed
;
121
}
122
126
public
function
setFailed
(?
int
$failed
): void
127
{
128
$this->failed =
$failed
;
129
}
130
134
public
function
setEstimatedTotal
(?
int
$estimatedTotal
): void
135
{
136
$this->estimatedTotal =
$estimatedTotal
;
137
}
138
}
Commercetools\Api\Models\CustomerSearch\CustomerIndexingProgressModel
Definition
CustomerIndexingProgressModel.php:21
Commercetools\Api\Models\CustomerSearch\CustomerIndexingProgressModel\$estimatedTotal
$estimatedTotal
Definition
CustomerIndexingProgressModel.php:38
Commercetools\Api\Models\CustomerSearch\CustomerIndexingProgressModel\getFailed
getFailed()
Definition
CustomerIndexingProgressModel.php:80
Commercetools\Api\Models\CustomerSearch\CustomerIndexingProgressModel\getEstimatedTotal
getEstimatedTotal()
Definition
CustomerIndexingProgressModel.php:100
Commercetools\Api\Models\CustomerSearch\CustomerIndexingProgressModel\$failed
$failed
Definition
CustomerIndexingProgressModel.php:32
Commercetools\Api\Models\CustomerSearch\CustomerIndexingProgressModel\setFailed
setFailed(?int $failed)
Definition
CustomerIndexingProgressModel.php:126
Commercetools\Api\Models\CustomerSearch\CustomerIndexingProgressModel\__construct
__construct(?int $indexed=null, ?int $failed=null, ?int $estimatedTotal=null)
Definition
CustomerIndexingProgressModel.php:44
Commercetools\Api\Models\CustomerSearch\CustomerIndexingProgressModel\setEstimatedTotal
setEstimatedTotal(?int $estimatedTotal)
Definition
CustomerIndexingProgressModel.php:134
Commercetools\Api\Models\CustomerSearch\CustomerIndexingProgressModel\getIndexed
getIndexed()
Definition
CustomerIndexingProgressModel.php:60
Commercetools\Api\Models\CustomerSearch\CustomerIndexingProgressModel\$indexed
$indexed
Definition
CustomerIndexingProgressModel.php:26
Commercetools\Api\Models\CustomerSearch\CustomerIndexingProgressModel\setIndexed
setIndexed(?int $indexed)
Definition
CustomerIndexingProgressModel.php:118
Commercetools\Base\BaseJsonObject\raw
raw(string $field)
Definition
BaseJsonObject.php:57
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\JsonObject
Definition
JsonObject.php:15
Commercetools\Api\Models\CustomerSearch
Definition
CustomerIndexingProgress.php:9
Generated by
1.9.8