commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
ImportOperationStatusBuilder.php
1<?php
2
3declare(strict_types=1);
10
17use stdClass;
18
23{
28 private $operationId;
29
34 private $state;
35
40 private $errors;
41
48 public function getOperationId()
49 {
50 return $this->operationId;
51 }
52
59 public function getState()
60 {
61 return $this->state;
62 }
63
70 public function getErrors()
71 {
72 return $this->errors;
73 }
74
79 public function withOperationId(?string $operationId)
80 {
81 $this->operationId = $operationId;
82
83 return $this;
84 }
85
90 public function withState(?string $state)
91 {
92 $this->state = $state;
93
94 return $this;
95 }
96
101 public function withErrors(?ErrorObjectCollection $errors)
102 {
103 $this->errors = $errors;
104
105 return $this;
106 }
107
108
109 public function build(): ImportOperationStatus
110 {
112 $this->operationId,
113 $this->state,
114 $this->errors
115 );
116 }
117
118 public static function of(): ImportOperationStatusBuilder
119 {
120 return new self();
121 }
122}