commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
CustomerIndexingProgressModel.php
1<?php
2
3declare(strict_types=1);
10
15use stdClass;
16
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
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}
__construct(?int $indexed=null, ?int $failed=null, ?int $estimatedTotal=null)