src/MDS/EventsBundle/Entity/ProposalTracing.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.  * ProposalTracing
  8.  *
  9.  * @ORM\Table(name="proposal_tracings")
  10.  * @ORM\Entity(repositoryClass="App\MDS\EventsBundle\Repository\ProposalTracingRepository")
  11.  * @ORM\HasLifecycleCallbacks()
  12.  */
  13. class ProposalTracing
  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 \DateTime
  25.      *
  26.      * @ORM\Column(name="date_at", type="datetime")
  27.      */
  28.     private $dateAt;
  29.     /**
  30.      * @var string
  31.      *
  32.      * @ORM\Column(name="text", type="string", length=255)
  33.      */
  34.     private $text;
  35.     /**
  36.      * @var string
  37.      *
  38.      * @ORM\Column(name="agent_id", type="integer")
  39.      */
  40.     private $agentId;
  41.     /**
  42.      * @var string
  43.      *
  44.      * @ORM\Column(name="proposal_id", type="integer")
  45.      */
  46.     private $proposalId;
  47.     /**
  48.      * @var string
  49.      *
  50.      * @ORM\Column(name="viewed", type="string", length=2)
  51.      */
  52.     private $viewed;
  53.     /**
  54.      * @var int
  55.      *
  56.      * @ORM\Column(name="created_id", type="integer")
  57.      */
  58.     private $createdId;
  59.     /**
  60.      * @var \DateTime
  61.      *
  62.      * @ORM\Column(name="created_at", type="datetime")
  63.      */
  64.     private $createdAt;
  65.     /**
  66.      * @var int
  67.      *
  68.      * @ORM\Column(name="updated_id", type="integer")
  69.      */
  70.     private $updatedId;
  71.     /**
  72.      * @var \DateTime
  73.      *
  74.      * @ORM\Column(name="updated_at", type="datetime")
  75.      */
  76.     private $updatedAt;
  77.     /**
  78.      * Get id
  79.      *
  80.      * @return int
  81.      */
  82.     public function getId()
  83.     {
  84.         return $this->id;
  85.     }
  86.     /**
  87.      * Set dateAt
  88.      *
  89.      * @param \DateTime $dateAt
  90.      *
  91.      * @return ProposalTracing
  92.      */
  93.     public function setDateAt($dateAt)
  94.     {
  95.         $this->dateAt $dateAt;
  96.         return $this;
  97.     }
  98.     /**
  99.      * Get dateAt
  100.      *
  101.      * @return \DateTime
  102.      */
  103.     public function getDateAt()
  104.     {
  105.         return $this->dateAt;
  106.     }
  107.     /**
  108.      * Set text
  109.      *
  110.      * @param string $text
  111.      *
  112.      * @return ProposalTracing
  113.      */
  114.     public function setText($text)
  115.     {
  116.         $this->text $text;
  117.         return $this;
  118.     }
  119.     /**
  120.      * Get text
  121.      *
  122.      * @return string
  123.      */
  124.     public function getText()
  125.     {
  126.         return $this->text;
  127.     }
  128.     /**
  129.      * Set agentId
  130.      *
  131.      * @param integer $agentId
  132.      *
  133.      * @return ProposalTracing
  134.      */
  135.     public function setAgentId($agentId)
  136.     {
  137.         $this->agentId $agentId;
  138.         return $this;
  139.     }
  140.     /**
  141.      * Get agentId
  142.      *
  143.      * @return integer
  144.      */
  145.     public function getAgentId()
  146.     {
  147.         return $this->agentId;
  148.     }
  149.     /**
  150.      * Set viewed
  151.      *
  152.      * @param string $viewed
  153.      *
  154.      * @return ProposalTracing
  155.      */
  156.     public function setViewed($viewed)
  157.     {
  158.         $this->viewed $viewed;
  159.         return $this;
  160.     }
  161.     /**
  162.      * Get viewed
  163.      *
  164.      * @return string
  165.      */
  166.     public function getViewed()
  167.     {
  168.         return $this->viewed;
  169.     }
  170.     /**
  171.      * Set createdId
  172.      *
  173.      * @param integer $createdId
  174.      *
  175.      * @return ProposalTracing
  176.      */
  177.     public function setCreatedId($createdId)
  178.     {
  179.         $this->createdId $createdId;
  180.         return $this;
  181.     }
  182.     /**
  183.      * Get createdId
  184.      *
  185.      * @return integer
  186.      */
  187.     public function getCreatedId()
  188.     {
  189.         return $this->createdId;
  190.     }
  191.     /**
  192.      * Set createdAt
  193.      *
  194.      * @param \DateTime $createdAt
  195.      *
  196.      * @return ProposalTracing
  197.      */
  198.     public function setCreatedAt(\Datetime $createdAt)
  199.     {
  200.         $this->createdAt $createdAt;
  201.         return $this;
  202.     }
  203.     /**
  204.      * Get createdAt
  205.      *
  206.      * @return \DateTime
  207.      */
  208.     public function getCreatedAt()
  209.     {
  210.         return $this->createdAt;
  211.     }
  212.     /**
  213.      * Set updatedId
  214.      *
  215.      * @param integer $updatedId
  216.      *
  217.      * @return ProposalTracing
  218.      */
  219.     public function setUpdatedId($updatedId)
  220.     {
  221.         $this->updatedId $updatedId;
  222.         return $this;
  223.     }
  224.     /**
  225.      * Get updatedId
  226.      *
  227.      * @return integer
  228.      */
  229.     public function getUpdatedId()
  230.     {
  231.         return $this->updatedId;
  232.     }
  233.     /**
  234.      * Set updatedAt
  235.      *
  236.      * @param \DateTime $updatedAt
  237.      *
  238.      * @return ProposalTracing
  239.      */
  240.     public function setUpdatedAt(\Datetime $updatedAt)
  241.     {
  242.         $this->updatedAt $updatedAt;
  243.         return $this;
  244.     }
  245.     /**
  246.      * Get updatedAt
  247.      *
  248.      * @return \DateTime
  249.      */
  250.     public function getUpdatedAt()
  251.     {
  252.         return $this->updatedAt;
  253.     }
  254.     
  255.     /**
  256.      * @ORM\PrePersist
  257.      */
  258.     public function setCreatedAtValue()
  259.     {
  260.         $this->createdAt = new \Datetime();
  261.     }
  262.     /**
  263.      * @ORM\PrePersist
  264.      * @ORM\PreUpdate
  265.      */
  266.     public function setUpdatedAtValue()
  267.     {
  268.         $this->updatedAt = new \Datetime();
  269.     }
  270.     /**
  271.      * Set proposalId
  272.      *
  273.      * @param integer $proposalId
  274.      *
  275.      * @return ProposalTracing
  276.      */
  277.     public function setProposalId($proposalId)
  278.     {
  279.         $this->proposalId $proposalId;
  280.         return $this;
  281.     }
  282.     /**
  283.      * Get proposalId
  284.      *
  285.      * @return integer
  286.      */
  287.     public function getProposalId()
  288.     {
  289.         return $this->proposalId;
  290.     }
  291. }