src/App/Entity/System/SocialAccounts/FacebookSocialAccount.php line 16

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.  * Class FacebookSocialAccount
  7.  * @package Products\SocialBundle\Entity\SocialAccounts
  8.  *
  9.  * @ORM\Entity(
  10.  *     repositoryClass = "App\Doctrine\Repository\System\SocialAccounts\FacebookSocialAccountRepository",
  11.  * )
  12.  */
  13. class FacebookSocialAccount extends SocialAccount
  14. {
  15.     const DISCR 'facebook';
  16.     /**
  17.      * @var string|null
  18.      *
  19.      * @ORM\Column(
  20.      *     type = "string",
  21.      *     nullable = false,
  22.      * )
  23.      */
  24.     protected ?string $facebookPageId null;
  25.     /**
  26.      * @var string|null
  27.      *
  28.      * @ORM\Column(
  29.      *     type = "string",
  30.      *     nullable = false,
  31.      * )
  32.      */
  33.     protected ?string $facebookUserId null;
  34.     /**
  35.      * @var string|null
  36.      *
  37.      * @ORM\Column(
  38.      *     type = "string",
  39.      *     nullable = false,
  40.      * )
  41.      */
  42.     protected ?string $facebookUserName null;
  43.     /**
  44.      * @var string|null
  45.      *
  46.      * @ORM\Column(
  47.      *     type = "string",
  48.      *     nullable = false,
  49.      * )
  50.      */
  51.     protected ?string $facebookAccessToken null;
  52.     /**
  53.      * @return string|null
  54.      */
  55.     public function getFacebookAccessToken(): ?string
  56.     {
  57.         return $this->facebookAccessToken;
  58.     }
  59.     /**
  60.      * @param string $facebookAccessToken
  61.      * @return $this
  62.      */
  63.     public function setFacebookAccessToken(string $facebookAccessToken): self
  64.     {
  65.         $this->facebookAccessToken $facebookAccessToken;
  66.         return $this;
  67.     }
  68.     /**
  69.      * @return string|null
  70.      */
  71.     public function getFacebookPageId(): ?string
  72.     {
  73.         return $this->facebookPageId;
  74.     }
  75.     /**
  76.      * @param int $facebookPageId
  77.      * @return $this
  78.      */
  79.     public function setFacebookPageId(string $facebookPageId): self
  80.     {
  81.         $this->facebookPageId $facebookPageId;
  82.         return $this;
  83.     }
  84.     /**
  85.      * @return string|null
  86.      */
  87.     public function getFacebookUserId(): ?string
  88.     {
  89.         return $this->facebookUserId;
  90.     }
  91.     /**
  92.      * @param int $facebookUserId
  93.      * @return $this
  94.      */
  95.     public function setFacebookUserId(string $facebookUserId): self
  96.     {
  97.         $this->facebookUserId $facebookUserId;
  98.         return $this;
  99.     }
  100.     /**
  101.      * @return string|null
  102.      */
  103.     public function getFacebookUserName(): ?string
  104.     {
  105.         return $this->facebookUserName;
  106.     }
  107.     /**
  108.      * @param string $facebookUserName
  109.      * @return $this
  110.      */
  111.     public function setFacebookUserName(string $facebookUserName): self
  112.     {
  113.         $this->facebookUserName $facebookUserName;
  114.         return $this;
  115.     }
  116.     /**
  117.      * {@inheritDoc}
  118.      */
  119.     public function __toString(): string
  120.     {
  121.         return $this->getFacebookPageId();
  122.     }
  123.     /**
  124.      * {@inheritDoc}
  125.      */
  126.     public function getIdentifier(): ?string
  127.     {
  128.         return $this->getFacebookPageId();
  129.     }
  130. }