<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity
* @ORM\Table(name="hootsuite_token")
*/
class HootsuiteToken
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=100, nullable=true)
*/
private $access_token;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $expires_in;
/**
* @ORM\Column(type="string", length=100, nullable=true)
*/
private $refresh_token;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $created_at;
/**
* @ORM\Column(type="string", length=100)
*/
private $OAuth_Code;
public function __construct()
{
$this->access_token = "";
$this->expires_in = 0;
$this->refresh_token = "";
$this->created_at = new \DateTime();
$this->OAuth_Code = "";
}
public function getId(): ?int
{
return $this->id;
}
public function getAccessToken(): ?string
{
return $this->access_token;
}
public function setAccessToken(?string $access_token): void
{
$this->access_token = $access_token;
}
public function getExpiresIn(): ?int
{
return $this->expires_in;
}
public function setExpiresIn(?int $expires_in): void
{
$this->expires_in = $expires_in;
}
public function getRefreshToken(): ?string
{
return $this->refresh_token;
}
public function setRefreshToken(?string $refresh_token): void
{
$this->refresh_token = $refresh_token;
}
public function getCreatedAt(): ?\DateTimeInterface
{
return $this->created_at;
}
public function setCreatedAt(?\DateTimeInterface $created_at): void
{
$this->created_at = $created_at;
}
public function getOAuthCode(): string
{
return $this->OAuth_Code;
}
public function setOAuthCode(string $OAuth_Code): void
{
$this->OAuth_Code = $OAuth_Code;
}
}