commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
CustomerToken.php
1 <?php
2 
3 declare(strict_types=1);
10 
13 use DateTimeImmutable;
14 
15 interface CustomerToken extends JsonObject
16 {
17  public const FIELD_ID = 'id';
18  public const FIELD_CUSTOMER_ID = 'customerId';
19  public const FIELD_VALUE = 'value';
20  public const FIELD_EXPIRES_AT = 'expiresAt';
21  public const FIELD_CREATED_AT = 'createdAt';
22  public const FIELD_LAST_MODIFIED_AT = 'lastModifiedAt';
23 
30  public function getId();
31 
38  public function getCustomerId();
39 
46  public function getValue();
47 
54  public function getExpiresAt();
55 
62  public function getCreatedAt();
63 
70  public function getLastModifiedAt();
71 
75  public function setId(?string $id): void;
76 
80  public function setCustomerId(?string $customerId): void;
81 
85  public function setValue(?string $value): void;
86 
90  public function setExpiresAt(?DateTimeImmutable $expiresAt): void;
91 
95  public function setCreatedAt(?DateTimeImmutable $createdAt): void;
96 
100  public function setLastModifiedAt(?DateTimeImmutable $lastModifiedAt): void;
101 }
setExpiresAt(?DateTimeImmutable $expiresAt)
setCreatedAt(?DateTimeImmutable $createdAt)
setLastModifiedAt(?DateTimeImmutable $lastModifiedAt)