src/Entity/DestinationDescription.php line 16

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Symfony\Component\Validator\Constraints as Assert;
  5. use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
  6. /**
  7.  * DestinationDescription
  8.  *
  9.  * @ORM\Table(name="destinations_description")
  10.  * @ORM\Entity(repositoryClass="App\Repository\DestinationDescriptionRepository")
  11.  * @ORM\HasLifecycleCallbacks()
  12.  */
  13. class DestinationDescription
  14. {
  15.     /**
  16.      * @var int
  17.      *
  18.      * @ORM\Column(name="id", type="integer")
  19.      * @ORM\Id
  20.      * @ORM\GeneratedValue(strategy="AUTO")
  21.      */
  22.     private $id;
  23.     /**
  24.      * @var int
  25.      *
  26.      * @ORM\Column(name="destination_id", type="integer")
  27.      */
  28.     private $destinationId;
  29.     /**
  30.      * @var string
  31.      *
  32.      * @ORM\Column(name="language", type="string", length=255)
  33.      * @Assert\NotBlank()
  34.      */
  35.     private $language;
  36.     /**
  37.      * @var string
  38.      *
  39.      * @ORM\Column(name="description", type="text")
  40.      * @Assert\NotBlank()
  41.      */
  42.     private $description;
  43.     /**
  44.      * @var int
  45.      *
  46.      * @ORM\Column(name="created_id", type="integer")
  47.      */
  48.     private $createdId;
  49.     /**
  50.      * @var \DateTime
  51.      *
  52.      * @ORM\Column(name="created_at", type="datetime")
  53.      */
  54.     private $createdAt;
  55.     /**
  56.      * @var int
  57.      *
  58.      * @ORM\Column(name="updated_id", type="integer")
  59.      */
  60.     private $updatedId;
  61.     /**
  62.      * @var \DateTime
  63.      *
  64.      * @ORM\Column(name="updated_at", type="datetime")
  65.      */
  66.     private $updatedAt;
  67.     /**
  68.      * Get id
  69.      *
  70.      * @return int
  71.      */
  72.     public function getId()
  73.     {
  74.         return $this->id;
  75.     }
  76.     /**
  77.      * Set destinationId
  78.      *
  79.      * @param integer $destinationId
  80.      *
  81.      * @return DestinationDescription
  82.      */
  83.     public function setDestinationId($destinationId)
  84.     {
  85.         $this->destinationId $destinationId;
  86.         return $this;
  87.     }
  88.     /**
  89.      * Get destinationId
  90.      *
  91.      * @return int
  92.      */
  93.     public function getDestinationId()
  94.     {
  95.         return $this->destinationId;
  96.     }
  97.     /**
  98.      * Set language
  99.      *
  100.      * @param string $language
  101.      *
  102.      * @return DestinationDescription
  103.      */
  104.     public function setLanguage($language)
  105.     {
  106.         $this->language $language;
  107.         return $this;
  108.     }
  109.     /**
  110.      * Get language
  111.      *
  112.      * @return string
  113.      */
  114.     public function getLanguage()
  115.     {
  116.         return $this->language;
  117.     }
  118.     /**
  119.      * Set description
  120.      *
  121.      * @param string $description
  122.      *
  123.      * @return DestinationDescription
  124.      */
  125.     public function setDescription($description)
  126.     {
  127.         $this->description $description;
  128.         return $this;
  129.     }
  130.     /**
  131.      * Get description
  132.      *
  133.      * @return string
  134.      */
  135.     public function getDescription()
  136.     {
  137.         return $this->description;
  138.     }
  139.     /**
  140.      * Set createdId
  141.      *
  142.      * @param integer $createdId
  143.      *
  144.      * @return DestinationDescription
  145.      */
  146.     public function setCreatedId($createdId)
  147.     {
  148.         $this->createdId $createdId;
  149.         return $this;
  150.     }
  151.     /**
  152.      * Get createdId
  153.      *
  154.      * @return integer
  155.      */
  156.     public function getCreatedId()
  157.     {
  158.         return $this->createdId;
  159.     }
  160.     /**
  161.      * Set createdAt
  162.      *
  163.      * @param \DateTime $createdAt
  164.      *
  165.      * @return DestinationDescription
  166.      */
  167.     public function setCreatedAt(\Datetime $createdAt)
  168.     {
  169.         $this->createdAt $createdAt;
  170.         return $this;
  171.     }
  172.     /**
  173.      * Get createdAt
  174.      *
  175.      * @return \DateTime
  176.      */
  177.     public function getCreatedAt()
  178.     {
  179.         return $this->createdAt;
  180.     }
  181.     /**
  182.      * Set updatedId
  183.      *
  184.      * @param integer $updatedId
  185.      *
  186.      * @return DestinationDescription
  187.      */
  188.     public function setUpdatedId($updatedId)
  189.     {
  190.         $this->updatedId $updatedId;
  191.         return $this;
  192.     }
  193.     /**
  194.      * Get updatedId
  195.      *
  196.      * @return integer
  197.      */
  198.     public function getUpdatedId()
  199.     {
  200.         return $this->updatedId;
  201.     }
  202.     /**
  203.      * Set updatedAt
  204.      *
  205.      * @param \DateTime $updatedAt
  206.      *
  207.      * @return DestinationDescription
  208.      */
  209.     public function setUpdatedAt(\Datetime $updatedAt)
  210.     {
  211.         $this->updatedAt $updatedAt;
  212.         return $this;
  213.     }
  214.     /**
  215.      * Get updatedAt
  216.      *
  217.      * @return \DateTime
  218.      */
  219.     public function getUpdatedAt()
  220.     {
  221.         return $this->updatedAt;
  222.     }
  223.     /**
  224.      * @ORM\PrePersist
  225.      */
  226.     public function setCreatedAtValue()
  227.     {
  228.         $this->createdAt = new \Datetime();
  229.     }
  230.     /**
  231.      * @ORM\PrePersist
  232.      * @ORM\PreUpdate
  233.      */
  234.     public function setUpdatedAtValue()
  235.     {
  236.         $this->updatedAt = new \Datetime();
  237.     }
  238. }