commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
ImportResponseBuilder.php
1 <?php
2 
3 declare(strict_types=1);
10 
17 use stdClass;
18 
22 final class ImportResponseBuilder implements Builder
23 {
28  private $operationStatus;
29 
34  public function getOperationStatus()
35  {
36  return $this->operationStatus;
37  }
38 
43  public function withOperationStatus(?ImportOperationStatusCollection $operationStatus)
44  {
45  $this->operationStatus = $operationStatus;
46 
47  return $this;
48  }
49 
50 
51  public function build(): ImportResponse
52  {
53  return new ImportResponseModel(
54  $this->operationStatus
55  );
56  }
57 
58  public static function of(): ImportResponseBuilder
59  {
60  return new self();
61  }
62 }
withOperationStatus(?ImportOperationStatusCollection $operationStatus)