commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-base
src
Client
PreAuthTokenProvider.php
1
<?php
2
3
declare(strict_types=1);
10
namespace
Commercetools\Client
;
11
15
class
PreAuthTokenProvider
implements
TokenProvider
16
{
17
public
const
TOKEN
=
'token'
;
18
20
private
$token;
21
22
public
function
__construct
(
Token
$token)
23
{
24
$this->token = $token;
25
}
26
27
public
function
getToken
():
Token
28
{
29
return
$this->token;
30
}
31
32
public
function
refreshToken
():
Token
33
{
34
return
$this->token;
35
}
36
}
Commercetools\Client\PreAuthTokenProvider
Definition:
PreAuthTokenProvider.php:16
Commercetools\Client\PreAuthTokenProvider\refreshToken
refreshToken()
Definition:
PreAuthTokenProvider.php:32
Commercetools\Client\PreAuthTokenProvider\TOKEN
const TOKEN
Definition:
PreAuthTokenProvider.php:17
Commercetools\Client\PreAuthTokenProvider\getToken
getToken()
Definition:
PreAuthTokenProvider.php:27
Commercetools\Client\PreAuthTokenProvider\__construct
__construct(Token $token)
Definition:
PreAuthTokenProvider.php:22
Commercetools\Client\Token
Definition:
Token.php:16
Commercetools\Client\TokenProvider
Definition:
TokenProvider.php:13
Commercetools\Client
Definition:
AnonymousFlowTokenProvider.php:5
Generated by
1.9.1