src/MDS/EventsBundle/Entity/ProposalProforma.php line 16

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