<?php
namespace App\Entity\System\SocialAccounts;
use App\Entity\System\SocialAccount;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(
* repositoryClass = "App\Doctrine\Repository\System\SocialAccounts\InstagramSocialAccountRepository",
* )
*/
class InstagramSocialAccount extends SocialAccount
{
const DISCR = 'instagram';
/**
* @var string|null
*
* @ORM\Column(
* type = "string",
* nullable = false,
* )
*/
protected ?string $instagramProfileId = null;
/**
* @var string|null
*
* @ORM\Column(
* type = "string",
* nullable = false,
* )
*/
protected ?string $instagramUserId = null;
/**
* @var string|null
*
* @ORM\Column(
* type = "string",
* nullable = false,
* )
*/
protected ?string $instagramUserName = null;
/**
* @var string|null
*
* @ORM\Column(
* type = "string",
* nullable = false,
* )
*/
protected ?string $instagramAccessToken = null;
/**
* @return string|null
*/
public function getInstagramAccessToken(): ?string
{
return $this->instagramAccessToken;
}
/**
* @param string $instagramAccessToken
* @return $this
*/
public function setInstagramAccessToken(string $instagramAccessToken): self
{
$this->instagramAccessToken = $instagramAccessToken;
return $this;
}
/**
* @return string|null
*/
public function getInstagramProfileId(): ?string
{
return $this->instagramProfileId;
}
/**
* @param string $instagramProfileId
* @return $this
*/
public function setInstagramProfileId(string $instagramProfileId): self
{
$this->instagramProfileId = $instagramProfileId;
return $this;
}
/**
* @return string|null
*/
public function getInstagramUserId(): ?string
{
return $this->instagramUserId;
}
/**
* @param string $instagramUserId
* @return $this
*/
public function setInstagramUserId(string $instagramUserId): self
{
$this->instagramUserId = $instagramUserId;
return $this;
}
/**
* @return string|null
*/
public function getInstagramUserName(): ?string
{
return $this->instagramUserName;
}
/**
* @param string $instagramUserName
* @return $this
*/
public function setInstagramUserName(string $instagramUserName): self
{
$this->instagramUserName = $instagramUserName;
return $this;
}
/**
* {@inheritDoc}
*/
public function __toString(): string
{
return $this->getInstagramProfileId();
}
/**
* {@inheritDoc}
*/
public function getIdentifier(): ?string
{
return $this->getInstagramProfileId();
}
}