src/App/Entity/System/SocialAccounts/InstagramSocialAccount.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity\System\SocialAccounts;
  3. use App\Entity\System\SocialAccount;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(
  7.  *     repositoryClass = "App\Doctrine\Repository\System\SocialAccounts\InstagramSocialAccountRepository",
  8.  * )
  9.  */
  10. class InstagramSocialAccount extends SocialAccount
  11. {
  12.     const DISCR 'instagram';
  13.     /**
  14.      * @var string|null
  15.      *
  16.      * @ORM\Column(
  17.      *     type = "string",
  18.      *     nullable = false,
  19.      * )
  20.      */
  21.     protected ?string $instagramProfileId null;
  22.     /**
  23.      * @var string|null
  24.      *
  25.      * @ORM\Column(
  26.      *     type = "string",
  27.      *     nullable = false,
  28.      * )
  29.      */
  30.     protected ?string $instagramUserId null;
  31.     /**
  32.      * @var string|null
  33.      *
  34.      * @ORM\Column(
  35.      *     type = "string",
  36.      *     nullable = false,
  37.      * )
  38.      */
  39.     protected ?string $instagramUserName null;
  40.     /**
  41.      * @var string|null
  42.      *
  43.      * @ORM\Column(
  44.      *     type = "string",
  45.      *     nullable = false,
  46.      * )
  47.      */
  48.     protected ?string $instagramAccessToken null;
  49.     /**
  50.      * @return string|null
  51.      */
  52.     public function getInstagramAccessToken(): ?string
  53.     {
  54.         return $this->instagramAccessToken;
  55.     }
  56.     /**
  57.      * @param string $instagramAccessToken
  58.      * @return $this
  59.      */
  60.     public function setInstagramAccessToken(string $instagramAccessToken): self
  61.     {
  62.         $this->instagramAccessToken $instagramAccessToken;
  63.         return $this;
  64.     }
  65.     /**
  66.      * @return string|null
  67.      */
  68.     public function getInstagramProfileId(): ?string
  69.     {
  70.         return $this->instagramProfileId;
  71.     }
  72.     /**
  73.      * @param string $instagramProfileId
  74.      * @return $this
  75.      */
  76.     public function setInstagramProfileId(string $instagramProfileId): self
  77.     {
  78.         $this->instagramProfileId $instagramProfileId;
  79.         return $this;
  80.     }
  81.     /**
  82.      * @return string|null
  83.      */
  84.     public function getInstagramUserId(): ?string
  85.     {
  86.         return $this->instagramUserId;
  87.     }
  88.     /**
  89.      * @param string $instagramUserId
  90.      * @return $this
  91.      */
  92.     public function setInstagramUserId(string $instagramUserId): self
  93.     {
  94.         $this->instagramUserId $instagramUserId;
  95.         return $this;
  96.     }
  97.     /**
  98.      * @return string|null
  99.      */
  100.     public function getInstagramUserName(): ?string
  101.     {
  102.         return $this->instagramUserName;
  103.     }
  104.     /**
  105.      * @param string $instagramUserName
  106.      * @return $this
  107.      */
  108.     public function setInstagramUserName(string $instagramUserName): self
  109.     {
  110.         $this->instagramUserName $instagramUserName;
  111.         return $this;
  112.     }
  113.     /**
  114.      * {@inheritDoc}
  115.      */
  116.     public function __toString(): string
  117.     {
  118.         return $this->getInstagramProfileId();
  119.     }
  120.     /**
  121.      * {@inheritDoc}
  122.      */
  123.     public function getIdentifier(): ?string
  124.     {
  125.         return $this->getInstagramProfileId();
  126.     }
  127. }