vendor/sylius/user/Model/UserOAuth.php line 16

  1. <?php
  2. /*
  3.  * This file is part of the Sylius package.
  4.  *
  5.  * (c) Paweł Jędrzejewski
  6.  *
  7.  * For the full copyright and license information, please view the LICENSE
  8.  * file that was distributed with this source code.
  9.  */
  10. declare(strict_types=1);
  11. namespace Sylius\Component\User\Model;
  12. class UserOAuth implements UserOAuthInterface
  13. {
  14.     /** @var mixed */
  15.     protected $id;
  16.     /** @var string|null */
  17.     protected $provider;
  18.     /** @var string|null */
  19.     protected $identifier;
  20.     /** @var string|null */
  21.     protected $accessToken;
  22.     /** @var string|null */
  23.     protected $refreshToken;
  24.     /** @var UserInterface|null */
  25.     protected $user;
  26.     public function getId()
  27.     {
  28.         return $this->id;
  29.     }
  30.     public function getProvider(): ?string
  31.     {
  32.         return $this->provider;
  33.     }
  34.     public function setProvider(?string $provider): void
  35.     {
  36.         $this->provider $provider;
  37.     }
  38.     public function getIdentifier(): ?string
  39.     {
  40.         return $this->identifier;
  41.     }
  42.     public function setIdentifier(?string $identifier): void
  43.     {
  44.         $this->identifier $identifier;
  45.     }
  46.     public function getAccessToken(): ?string
  47.     {
  48.         return $this->accessToken;
  49.     }
  50.     public function setAccessToken(?string $accessToken): void
  51.     {
  52.         $this->accessToken $accessToken;
  53.     }
  54.     public function getUser(): ?UserInterface
  55.     {
  56.         return $this->user;
  57.     }
  58.     public function setUser(?UserInterface $user): void
  59.     {
  60.         $this->user $user;
  61.     }
  62.     public function getRefreshToken(): ?string
  63.     {
  64.         return $this->refreshToken;
  65.     }
  66.     public function setRefreshToken(?string $refreshToken): void
  67.     {
  68.         $this->refreshToken $refreshToken;
  69.     }
  70. }