vendor/webbamboo/spinners-common/src/Entity/General.php line 13

  1. <?php
  2. namespace Webbamboo\SpinnersCommon\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * General
  6.  *
  7.  * @ORM\Table(name="general")
  8.  * @ORM\Entity(repositoryClass="Webbamboo\SpinnersCommon\Repository\GeneralRepository")
  9.  */
  10. class General
  11. {
  12.     /**
  13.      * @var int
  14.      *
  15.      * @ORM\Column(name="id", type="integer")
  16.      * @ORM\Id
  17.      * @ORM\GeneratedValue(strategy="AUTO")
  18.      */
  19.     private $id;
  20.     /**
  21.      * @var string
  22.      *
  23.      * @ORM\Column(name="fromurl", type="string", length=255, unique=true)
  24.      */
  25.     private $fromurl;
  26.     /**
  27.      * @var string
  28.      *
  29.      * @ORM\Column(name="tourl", type="string", length=255)
  30.      */
  31.     private $tourl;
  32.     /**
  33.      * @var \DateTime
  34.      *
  35.      * @ORM\Column(name="timestamp", type="datetimetz")
  36.      */
  37.     private $timestamp;
  38.     /**
  39.      * Get id
  40.      *
  41.      * @return int
  42.      */
  43.     public function getId()
  44.     {
  45.         return $this->id;
  46.     }
  47.     /**
  48.      * Set fromurl
  49.      *
  50.      * @param string $fromurl
  51.      *
  52.      * @return General
  53.      */
  54.     public function setFromurl($fromurl)
  55.     {
  56.         $this->fromurl $fromurl;
  57.         return $this;
  58.     }
  59.     /**
  60.      * Get fromurl
  61.      *
  62.      * @return string
  63.      */
  64.     public function getFromurl()
  65.     {
  66.         return $this->fromurl;
  67.     }
  68.     /**
  69.      * Set tourl
  70.      *
  71.      * @param string $tourl
  72.      *
  73.      * @return General
  74.      */
  75.     public function setTourl($tourl)
  76.     {
  77.         $this->tourl $tourl;
  78.         return $this;
  79.     }
  80.     /**
  81.      * Get tourl
  82.      *
  83.      * @return string
  84.      */
  85.     public function getTourl()
  86.     {
  87.         return $this->tourl;
  88.     }
  89.     /**
  90.      * Set timestamp
  91.      *
  92.      * @param \DateTime $timestamp
  93.      *
  94.      * @return General
  95.      */
  96.     public function setTimestamp($timestamp)
  97.     {
  98.         $this->timestamp $timestamp;
  99.         return $this;
  100.     }
  101.     /**
  102.      * Get timestamp
  103.      *
  104.      * @return \DateTime
  105.      */
  106.     public function getTimestamp()
  107.     {
  108.         return $this->timestamp;
  109.     }
  110. }