commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
ImportOperation.php
1<?php
2
3declare(strict_types=1);
10
15use DateTimeImmutable;
16
17interface ImportOperation extends JsonObject
18{
19 public const FIELD_VERSION = 'version';
20 public const FIELD_IMPORT_CONTAINER_KEY = 'importContainerKey';
21 public const FIELD_RESOURCE_KEY = 'resourceKey';
22 public const FIELD_ID = 'id';
23 public const FIELD_STATE = 'state';
24 public const FIELD_RESOURCE_VERSION = 'resourceVersion';
25 public const FIELD_ERRORS = 'errors';
26 public const FIELD_UNRESOLVED_REFERENCES = 'unresolvedReferences';
27 public const FIELD_CREATED_AT = 'createdAt';
28 public const FIELD_LAST_MODIFIED_AT = 'lastModifiedAt';
29 public const FIELD_EXPIRES_AT = 'expiresAt';
30
37 public function getVersion();
38
45 public function getImportContainerKey();
46
53 public function getResourceKey();
54
61 public function getId();
62
69 public function getState();
70
77 public function getResourceVersion();
78
85 public function getErrors();
86
93 public function getUnresolvedReferences();
94
101 public function getCreatedAt();
102
109 public function getLastModifiedAt();
110
117 public function getExpiresAt();
118
122 public function setVersion(?int $version): void;
123
127 public function setImportContainerKey(?string $importContainerKey): void;
128
132 public function setResourceKey(?string $resourceKey): void;
133
137 public function setId(?string $id): void;
138
142 public function setState(?string $state): void;
143
147 public function setResourceVersion(?int $resourceVersion): void;
148
152 public function setErrors(?ErrorObjectCollection $errors): void;
153
157 public function setUnresolvedReferences(?UnresolvedReferencesCollection $unresolvedReferences): void;
158
162 public function setCreatedAt(?DateTimeImmutable $createdAt): void;
163
167 public function setLastModifiedAt(?DateTimeImmutable $lastModifiedAt): void;
168
172 public function setExpiresAt(?DateTimeImmutable $expiresAt): void;
173}
setLastModifiedAt(?DateTimeImmutable $lastModifiedAt)
setUnresolvedReferences(?UnresolvedReferencesCollection $unresolvedReferences)