commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-base
src
Client
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
}
Commercetools\Client\TokenModel
Definition:
TokenModel.php:16
Commercetools\Client\TokenModel\getValue
getValue()
Definition:
TokenModel.php:35
Commercetools\Client\TokenModel\__construct
__construct(string $value, int $expiresIn=null)
Definition:
TokenModel.php:29
Commercetools\Client\TokenModel\getExpiresIn
getExpiresIn()
Definition:
TokenModel.php:40
Commercetools\Client\Token
Definition:
Token.php:16
Commercetools\Client
Definition:
AnonymousFlowTokenProvider.php:5
Generated by
1.9.1