commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
TokenModel.php
1<?php
2
3declare(strict_types=1);
10namespace Commercetools\Client;
11
15class 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)