commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
ApiClient.php
1 <?php
2 
3 declare(strict_types=1);
10 
13 use DateTimeImmutable;
14 
15 interface ApiClient extends JsonObject
16 {
17  public const FIELD_ID = 'id';
18  public const FIELD_NAME = 'name';
19  public const FIELD_SCOPE = 'scope';
20  public const FIELD_SECRET = 'secret';
21  public const FIELD_LAST_USED_AT = 'lastUsedAt';
22  public const FIELD_DELETE_AT = 'deleteAt';
23  public const FIELD_CREATED_AT = 'createdAt';
24  public const FIELD_ACCESS_TOKEN_VALIDITY_SECONDS = 'accessTokenValiditySeconds';
25  public const FIELD_REFRESH_TOKEN_VALIDITY_SECONDS = 'refreshTokenValiditySeconds';
26 
33  public function getId();
34 
41  public function getName();
42 
49  public function getScope();
50 
58  public function getSecret();
59 
66  public function getLastUsedAt();
67 
74  public function getDeleteAt();
75 
82  public function getCreatedAt();
83 
90  public function getAccessTokenValiditySeconds();
91 
98  public function getRefreshTokenValiditySeconds();
99 
103  public function setId(?string $id): void;
104 
108  public function setName(?string $name): void;
109 
113  public function setScope(?string $scope): void;
114 
118  public function setSecret(?string $secret): void;
119 
123  public function setLastUsedAt(?DateTimeImmutable $lastUsedAt): void;
124 
128  public function setDeleteAt(?DateTimeImmutable $deleteAt): void;
129 
133  public function setCreatedAt(?DateTimeImmutable $createdAt): void;
134 
138  public function setAccessTokenValiditySeconds(?int $accessTokenValiditySeconds): void;
139 
143  public function setRefreshTokenValiditySeconds(?int $refreshTokenValiditySeconds): void;
144 }
setDeleteAt(?DateTimeImmutable $deleteAt)
setAccessTokenValiditySeconds(?int $accessTokenValiditySeconds)
setRefreshTokenValiditySeconds(?int $refreshTokenValiditySeconds)
setCreatedAt(?DateTimeImmutable $createdAt)
setLastUsedAt(?DateTimeImmutable $lastUsedAt)