src/Entity/HootsuiteToken.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * @ORM\Entity
  6.  * @ORM\Table(name="hootsuite_token")
  7.  */
  8. class HootsuiteToken
  9. {
  10.   /**
  11.    * @ORM\Id
  12.    * @ORM\GeneratedValue
  13.    * @ORM\Column(type="integer")
  14.    */
  15.   private $id;
  16.   /**
  17.    * @ORM\Column(type="string", length=100, nullable=true)
  18.    */
  19.   private $access_token;
  20.   /**
  21.    * @ORM\Column(type="integer", nullable=true)
  22.    */
  23.   private $expires_in;
  24.   /**
  25.    * @ORM\Column(type="string", length=100, nullable=true)
  26.    */
  27.   private $refresh_token;
  28.   /**
  29.    * @ORM\Column(type="datetime", nullable=true)
  30.    */
  31.   private $created_at;
  32.   /**
  33.    * @ORM\Column(type="string", length=100)
  34.    */
  35.   private $OAuth_Code;
  36.   public function __construct()
  37.   {
  38.     $this->access_token "";
  39.     $this->expires_in 0;
  40.     $this->refresh_token "";
  41.     $this->created_at = new \DateTime();
  42.     $this->OAuth_Code "";
  43.   }
  44.   public function getId(): ?int
  45.   {
  46.     return $this->id;
  47.   }
  48.   public function getAccessToken(): ?string
  49.   {
  50.     return $this->access_token;
  51.   }
  52.   public function setAccessToken(?string $access_token): void
  53.   {
  54.     $this->access_token $access_token;
  55.   }
  56.   public function getExpiresIn(): ?int
  57.   {
  58.     return $this->expires_in;
  59.   }
  60.   public function setExpiresIn(?int $expires_in): void
  61.   {
  62.     $this->expires_in $expires_in;
  63.   }
  64.   public function getRefreshToken(): ?string
  65.   {
  66.     return $this->refresh_token;
  67.   }
  68.   public function setRefreshToken(?string $refresh_token): void
  69.   {
  70.     $this->refresh_token $refresh_token;
  71.   }
  72.   public function getCreatedAt(): ?\DateTimeInterface
  73.   {
  74.     return $this->created_at;
  75.   }
  76.   public function setCreatedAt(?\DateTimeInterface $created_at): void
  77.   {
  78.     $this->created_at $created_at;
  79.   }
  80.   public function getOAuthCode(): string
  81.   {
  82.     return $this->OAuth_Code;
  83.   }
  84.   public function setOAuthCode(string $OAuth_Code): void
  85.   {
  86.     $this->OAuth_Code $OAuth_Code;
  87.   }
  88.   
  89. }