commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
TokenModel.php
1 <?php
2 
3 declare(strict_types=1);
10 namespace Commercetools\Client;
11 
15 class TokenModel implements Token
16 {
21  private $value;
22 
27  private $expiresIn;
28 
29  public function __construct(string $value, int $expiresIn = null)
30  {
31  $this->value = $value;
32  $this->expiresIn = $expiresIn ?? 0;
33  }
34 
35  public function getValue(): string
36  {
37  return $this->value;
38  }
39 
40  public function getExpiresIn(): int
41  {
42  return $this->expiresIn;
43  }
44 }
__construct(string $value, int $expiresIn=null)
Definition: TokenModel.php:29