commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
CustomerIndexingProgressBuilder.php
1 <?php
2 
3 declare(strict_types=1);
10 
16 use stdClass;
17 
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  {
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 }