src/Entity/VacationsValidation.php line 14

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