commercetools-sdk-php-v2  master
The platform, import-api and ml-api 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 }