src/Products/SocialBundle/Entity/SocialAccounts/TwitterSocialAccount.php line 17

Open in your IDE?
  1. <?php
  2. namespace Products\SocialBundle\Entity\SocialAccounts;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Products\SocialBundle\Entity\SocialAccount;
  5. /**
  6.  * Class TwitterSocialAccount
  7.  *
  8.  * @package Products\SocialBundle\Entity\SocialAccounts
  9.  *
  10.  * @ORM\Entity(
  11.  *     repositoryClass = "Products\SocialBundle\Doctrine\Repository\SocialAccounts\TwitterSocialAccountRepository"
  12.  * )
  13.  */
  14. class TwitterSocialAccount extends SocialAccount
  15. {
  16.     const DISCR 'twitter';
  17.     /**
  18.      * @var int
  19.      *
  20.      * @ORM\Column(
  21.      *     type = "bigint",
  22.      *     nullable = false
  23.      * )
  24.      */
  25.     protected $twitterUserId;
  26.     /**
  27.      * @var string
  28.      *
  29.      * @ORM\Column(
  30.      *     type = "string",
  31.      *     nullable = false
  32.      * )
  33.      */
  34.     protected $twitterUserName;
  35.     /**
  36.      * @var string
  37.      *
  38.      * @ORM\Column(
  39.      *     type = "string",
  40.      *     nullable = false
  41.      * )
  42.      */
  43.     protected $twitterAccessToken;
  44.     /**
  45.      * @var string
  46.      *
  47.      * @ORM\Column(
  48.      *     type = "string",
  49.      *     nullable = false
  50.      * )
  51.      */
  52.     protected $twitterTokenSecret;
  53.     /**
  54.      * @return int
  55.      */
  56.     public function getTwitterUserId()
  57.     {
  58.         return $this->twitterUserId;
  59.     }
  60.     /**
  61.      * @param int $value
  62.      * @return $this
  63.      */
  64.     public function setTwitterUserId($value)
  65.     {
  66.         $this->twitterUserId $value;
  67.         return $this;
  68.     }
  69.     /**
  70.      * @return string
  71.      */
  72.     public function getTwitterUserName()
  73.     {
  74.         return $this->twitterUserName;
  75.     }
  76.     /**
  77.      * @param string $value
  78.      * @return $this
  79.      */
  80.     public function setTwitterUserName($value)
  81.     {
  82.         $this->twitterUserName $value;
  83.         return $this;
  84.     }
  85.     /**
  86.      * @return string
  87.      */
  88.     public function getTwitterAccessToken()
  89.     {
  90.         return $this->twitterAccessToken;
  91.     }
  92.     /**
  93.      * @param string $value
  94.      * @return $this
  95.      */
  96.     public function setTwitterAccessToken($value)
  97.     {
  98.         $this->twitterAccessToken $value;
  99.         return $this;
  100.     }
  101.     /**
  102.      * @return string
  103.      */
  104.     public function getTwitterTokenSecret()
  105.     {
  106.         return $this->twitterTokenSecret;
  107.     }
  108.     /**
  109.      * @param string $value
  110.      * @return $this
  111.      */
  112.     public function setTwitterTokenSecret($value)
  113.     {
  114.         $this->twitterTokenSecret $value;
  115.         return $this;
  116.     }
  117. }