commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
BaseResource.php
1 <?php
2 
3 declare(strict_types=1);
10 
246 use DateTimeImmutable;
247 
248 interface BaseResource extends JsonObject
249 {
250  public const FIELD_ID = 'id';
251  public const FIELD_VERSION = 'version';
252  public const FIELD_CREATED_AT = 'createdAt';
253  public const FIELD_LAST_MODIFIED_AT = 'lastModifiedAt';
254 
259  public function getId();
260 
265  public function getVersion();
266 
271  public function getCreatedAt();
272 
277  public function getLastModifiedAt();
278 
282  public function setId(?string $id): void;
283 
287  public function setVersion(?int $version): void;
288 
292  public function setCreatedAt(?DateTimeImmutable $createdAt): void;
293 
297  public function setLastModifiedAt(?DateTimeImmutable $lastModifiedAt): void;
298 }
setLastModifiedAt(?DateTimeImmutable $lastModifiedAt)
setCreatedAt(?DateTimeImmutable $createdAt)