commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
BaseResource.php
1<?php
2
3declare(strict_types=1);
10
247use DateTimeImmutable;
248
249interface BaseResource extends JsonObject
250{
251 public const FIELD_ID = 'id';
252 public const FIELD_VERSION = 'version';
253 public const FIELD_CREATED_AT = 'createdAt';
254 public const FIELD_LAST_MODIFIED_AT = 'lastModifiedAt';
255
260 public function getId();
261
266 public function getVersion();
267
272 public function getCreatedAt();
273
278 public function getLastModifiedAt();
279
283 public function setId(?string $id): void;
284
288 public function setVersion(?int $version): void;
289
293 public function setCreatedAt(?DateTimeImmutable $createdAt): void;
294
298 public function setLastModifiedAt(?DateTimeImmutable $lastModifiedAt): void;
299}
setLastModifiedAt(?DateTimeImmutable $lastModifiedAt)
setCreatedAt(?DateTimeImmutable $createdAt)