src/Aviatur/ContentBundle/Entity/HistoricalContent.php line 13

Open in your IDE?
  1. <?php
  2. namespace Aviatur\ContentBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * HistoricalContent.
  6.  *
  7.  * @ORM\Table(name="historical_content", indexes={@ORM\Index(name="content_id", columns={"content_id"}), @ORM\Index(name="customer_id", columns={"customer_id"})})
  8.  * @ORM\Entity(repositoryClass="Aviatur\ContentBundle\Entity\HistoricalContentRepository")
  9.  */
  10. class HistoricalContent
  11. {
  12.     /**
  13.      * @var int
  14.      *
  15.      * @ORM\Column(name="id", type="integer", nullable=false)
  16.      * @ORM\Id
  17.      * @ORM\GeneratedValue(strategy="IDENTITY")
  18.      */
  19.     private $id;
  20.     /**
  21.      * @var string
  22.      *
  23.      * @ORM\Column(name="info", type="text", nullable=false)
  24.      */
  25.     private $info;
  26.     /**
  27.      * @var \DateTime
  28.      *
  29.      * @ORM\Column(name="date", type="datetime", nullable=false)
  30.      */
  31.     private $date;
  32.     /**
  33.      * @var \Order
  34.      *
  35.      * @ORM\ManyToOne(targetEntity="Aviatur\ContentBundle\Entity\Content", inversedBy="historicalContent")
  36.      * @ORM\JoinColumns({
  37.      *   @ORM\JoinColumn(name="content_id", referencedColumnName="id")
  38.      * })
  39.      */
  40.     private $content;
  41.     /**
  42.      * @var \Order
  43.      *
  44.      * @ORM\ManyToOne(targetEntity="Aviatur\CustomerBundle\Entity\Customer", inversedBy="historicalContent")
  45.      * @ORM\JoinColumns({
  46.      *   @ORM\JoinColumn(name="customer_id", referencedColumnName="id")
  47.      * })
  48.      */
  49.     private $customer;
  50.     /**
  51.      * Get id.
  52.      *
  53.      * @return int
  54.      */
  55.     public function getId()
  56.     {
  57.         return $this->id;
  58.     }
  59.     /**
  60.      * Set info.
  61.      *
  62.      * @param string $info
  63.      *
  64.      * @return HistoricalContent
  65.      */
  66.     public function setInfo($info)
  67.     {
  68.         $this->info $info;
  69.         return $this;
  70.     }
  71.     /**
  72.      * Get info.
  73.      *
  74.      * @return string
  75.      */
  76.     public function getInfo()
  77.     {
  78.         return $this->info;
  79.     }
  80.     /**
  81.      * Get isActive.
  82.      *
  83.      * @return string
  84.      */
  85.     public function getisActive()
  86.     {
  87.         return $this->isActive;
  88.     }
  89.     /**
  90.      * Set date.
  91.      *
  92.      * @param \DateTime $date
  93.      *
  94.      * @return HistoricalContent
  95.      */
  96.     public function setDate($date)
  97.     {
  98.         $this->date $date;
  99.         return $this;
  100.     }
  101.     /**
  102.      * Set isActive.
  103.      *
  104.      * @param \DateTime $isActive
  105.      */
  106.     public function setisActive($isActive)
  107.     {
  108.         $this->isActive $isActive;
  109.         return $this;
  110.     }
  111.     /**
  112.      * Get date.
  113.      *
  114.      * @return \DateTime
  115.      */
  116.     public function getDate()
  117.     {
  118.         return $this->date;
  119.     }
  120.     /**
  121.      * @ORM\Column(name="isActive", type="boolean", nullable=true)
  122.      */
  123.     private bool $isActive false;
  124.     /**
  125.      * Set content.
  126.      *
  127.      * @param \Aviatur\ContentBundle\Entity\Content $content
  128.      *
  129.      * @return HistoricalContent
  130.      */
  131.     public function setContent(\Aviatur\ContentBundle\Entity\Content $content null)
  132.     {
  133.         $this->content $content;
  134.         return $this;
  135.     }
  136.     /**
  137.      * Get content.
  138.      *
  139.      * @return \Aviatur\ContentBundle\Entity\Content
  140.      */
  141.     public function getContent()
  142.     {
  143.         return $this->content;
  144.     }
  145.     /**
  146.      * Set customer.
  147.      *
  148.      * @param \Aviatur\CustomerBundle\Entity\Customer $customer
  149.      *
  150.      * @return HistoricalContent
  151.      */
  152.     public function setCustomer(\Aviatur\CustomerBundle\Entity\Customer $customer null)
  153.     {
  154.         $this->customer $customer;
  155.         return $this;
  156.     }
  157.     /**
  158.      * Get customer.
  159.      *
  160.      * @return \Aviatur\ContentBundle\Entity\Customer
  161.      */
  162.     public function getCustomer()
  163.     {
  164.         return $this->customer;
  165.     }
  166. }