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