<?php
namespace App\Entity\System\SocialAccounts;
use App\Entity\System\SocialAccount;
use Doctrine\ORM\Mapping as ORM;
/**
* Class FacebookSocialAccount
* @package Products\SocialBundle\Entity\SocialAccounts
*
* @ORM\Entity(
* repositoryClass = "App\Doctrine\Repository\System\SocialAccounts\FacebookSocialAccountRepository",
* )
*/
class FacebookSocialAccount extends SocialAccount
{
const DISCR = 'facebook';
/**
* @var string|null
*
* @ORM\Column(
* type = "string",
* nullable = false,
* )
*/
protected ?string $facebookPageId = null;
/**
* @var string|null
*
* @ORM\Column(
* type = "string",
* nullable = false,
* )
*/
protected ?string $facebookUserId = null;
/**
* @var string|null
*
* @ORM\Column(
* type = "string",
* nullable = false,
* )
*/
protected ?string $facebookUserName = null;
/**
* @var string|null
*
* @ORM\Column(
* type = "string",
* nullable = false,
* )
*/
protected ?string $facebookAccessToken = null;
/**
* @return string|null
*/
public function getFacebookAccessToken(): ?string
{
return $this->facebookAccessToken;
}
/**
* @param string $facebookAccessToken
* @return $this
*/
public function setFacebookAccessToken(string $facebookAccessToken): self
{
$this->facebookAccessToken = $facebookAccessToken;
return $this;
}
/**
* @return string|null
*/
public function getFacebookPageId(): ?string
{
return $this->facebookPageId;
}
/**
* @param int $facebookPageId
* @return $this
*/
public function setFacebookPageId(string $facebookPageId): self
{
$this->facebookPageId = $facebookPageId;
return $this;
}
/**
* @return string|null
*/
public function getFacebookUserId(): ?string
{
return $this->facebookUserId;
}
/**
* @param int $facebookUserId
* @return $this
*/
public function setFacebookUserId(string $facebookUserId): self
{
$this->facebookUserId = $facebookUserId;
return $this;
}
/**
* @return string|null
*/
public function getFacebookUserName(): ?string
{
return $this->facebookUserName;
}
/**
* @param string $facebookUserName
* @return $this
*/
public function setFacebookUserName(string $facebookUserName): self
{
$this->facebookUserName = $facebookUserName;
return $this;
}
/**
* {@inheritDoc}
*/
public function __toString(): string
{
return $this->getFacebookPageId();
}
/**
* {@inheritDoc}
*/
public function getIdentifier(): ?string
{
return $this->getFacebookPageId();
}
}