commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
ImportResponseModel.php
1 <?php
2 
3 declare(strict_types=1);
10 
16 use stdClass;
17 
21 final class ImportResponseModel extends JsonObjectModel implements ImportResponse
22 {
27  protected $operationStatus;
28 
29 
33  public function __construct(
35  ) {
36  $this->operationStatus = $operationStatus;
37  }
38 
43  public function getOperationStatus()
44  {
45  if (is_null($this->operationStatus)) {
47  $data = $this->raw(self::FIELD_OPERATION_STATUS);
48  if (is_null($data)) {
49  return null;
50  }
51  $this->operationStatus = ImportOperationStatusCollection::fromArray($data);
52  }
53 
55  }
56 
57 
62  {
63  $this->operationStatus = $operationStatus;
64  }
65 }
__construct(?ImportOperationStatusCollection $operationStatus=null)
setOperationStatus(?ImportOperationStatusCollection $operationStatus)