src/Entity/TrainingRequest.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * TrainingRequest
  6.  *
  7.  * @ORM\Table(name="training_request", uniqueConstraints={@ORM\UniqueConstraint(name="training_request_id_uindex", columns={"id"})}, indexes={@ORM\Index(name="training_request_training_campain_id_fk", columns={"training_campain_id"})})
  8.  * @ORM\Entity(repositoryClass="App\Repository\TrainingRequestRepository")
  9.  */
  10. class TrainingRequest
  11. {
  12.     /**
  13.      * @var integer
  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|null
  22.      *
  23.      * @ORM\Column(name="email", type="string", length=255, nullable=true)
  24.      */
  25.     private $email;
  26.     /**
  27.      * @var string|null
  28.      *
  29.      * @ORM\Column(name="token", type="string", length=255, nullable=true)
  30.      */
  31.     private $token;
  32.     /**
  33.      * @var \DateTime|null
  34.      *
  35.      * @ORM\Column(name="answer_date", type="datetime", nullable=true)
  36.      */
  37.     private $answerDate;
  38.     /**
  39.      * @var array
  40.      *
  41.      * @ORM\Column(name="user_answers", type="array", nullable=true)
  42.      */
  43.     private $userAnswers;
  44.     /**
  45.      * @var float
  46.      *
  47.      * @ORM\Column(name="result", type="float", precision=10, scale=0, nullable=true)
  48.      */
  49.     private $result 0;
  50.     /**
  51.      * @var string|null
  52.      *
  53.      * @ORM\Column(name="first_name", type="string", length=255, nullable=true)
  54.      */
  55.     private $firstName;
  56.     /**
  57.      * @var string|null
  58.      *
  59.      * @ORM\Column(name="last_name", type="string", length=255, nullable=true)
  60.      */
  61.     private $lastName;
  62.     /**
  63.      * @var string|null
  64.      *
  65.      * @ORM\Column(name="position", type="string", length=255, nullable=true)
  66.      */
  67.     private $position;
  68.     /**
  69.      * @var \DateTime
  70.      *
  71.      * @ORM\Column(name="resend_date", type="datetime", nullable=true)
  72.      */
  73.     private $resendDate;
  74.     /**
  75.      * @var TrainingCampain
  76.      *
  77.      * @ORM\ManyToOne(targetEntity="TrainingCampain")
  78.      * @ORM\JoinColumns({
  79.      *   @ORM\JoinColumn(name="training_campain_id", referencedColumnName="id")
  80.      * })
  81.      */
  82.     private $trainingCampain;
  83.     /**
  84.      * @var \Doctrine\Common\Collections\Collection
  85.      *
  86.      * @ORM\OneToMany(targetEntity="TrainingRequestHistory", mappedBy="trainingRequest")
  87.      */
  88.     private $histories;
  89.     /**
  90.      * Constructor
  91.      */
  92.     public function __construct()
  93.     {
  94.         $this->histories = new \Doctrine\Common\Collections\ArrayCollection();
  95.     }
  96.     /**
  97.      * @return int
  98.      */
  99.     public function getId()
  100.     {
  101.         return $this->id;
  102.     }
  103.     /**
  104.      * @param int $id
  105.      */
  106.     public function setId($id)
  107.     {
  108.         $this->id $id;
  109.     }
  110.     /**
  111.      * @return string|null
  112.      */
  113.     public function getEmail()
  114.     {
  115.         return $this->email;
  116.     }
  117.     /**
  118.      * @param string|null $email
  119.      */
  120.     public function setEmail($email)
  121.     {
  122.         $this->email $email;
  123.     }
  124.     /**
  125.      * @return string|null
  126.      */
  127.     public function getToken()
  128.     {
  129.         return $this->token;
  130.     }
  131.     /**
  132.      * @param string|null $token
  133.      */
  134.     public function setToken($token)
  135.     {
  136.         $this->token $token;
  137.     }
  138.     /**
  139.      * @return \DateTime|null
  140.      */
  141.     public function getAnswerDate()
  142.     {
  143.         return $this->answerDate;
  144.     }
  145.     /**
  146.      * @param \DateTime|null $answerDate
  147.      */
  148.     public function setAnswerDate($answerDate)
  149.     {
  150.         $this->answerDate $answerDate;
  151.     }
  152.     /**
  153.      * @return array
  154.      */
  155.     public function getUserAnswers()
  156.     {
  157.         return $this->userAnswers;
  158.     }
  159.     /**
  160.      * @param array $userAnswers
  161.      */
  162.     public function setUserAnswers($userAnswers)
  163.     {
  164.         $this->userAnswers $userAnswers;
  165.     }
  166.     /**
  167.      * @return float
  168.      */
  169.     public function getResult()
  170.     {
  171.         return $this->result;
  172.     }
  173.     /**
  174.      * @param float $result
  175.      */
  176.     public function setResult($result)
  177.     {
  178.         $this->result $result;
  179.     }
  180.     /**
  181.      * @return string|null
  182.      */
  183.     public function getFirstName(): ?string
  184.     {
  185.         return $this->firstName;
  186.     }
  187.     /**
  188.      * @param string|null $firstName
  189.      */
  190.     public function setFirstName(?string $firstName): void
  191.     {
  192.         $this->firstName $firstName;
  193.     }
  194.     /**
  195.      * @return string|null
  196.      */
  197.     public function getLastName(): ?string
  198.     {
  199.         return $this->lastName;
  200.     }
  201.     /**
  202.      * @param string|null $lastName
  203.      */
  204.     public function setLastName(?string $lastName): void
  205.     {
  206.         $this->lastName $lastName;
  207.     }
  208.     /**
  209.      * @return string|null
  210.      */
  211.     public function getPosition(): ?string
  212.     {
  213.         return $this->position;
  214.     }
  215.     /**
  216.      * @param string|null $position
  217.      */
  218.     public function setPosition(?string $position): void
  219.     {
  220.         $this->position $position;
  221.     }
  222.     /**
  223.      * @return \DateTime
  224.      */
  225.     public function getResendDate()
  226.     {
  227.         return $this->resendDate;
  228.     }
  229.     /**
  230.      * @param \DateTime $resendDate
  231.      */
  232.     public function setResendDate(\DateTime $resendDate)
  233.     {
  234.         $this->resendDate $resendDate;
  235.     }
  236.     /**
  237.      * @return TrainingCampain
  238.      */
  239.     public function getTrainingCampain()
  240.     {
  241.         return $this->trainingCampain;
  242.     }
  243.     /**
  244.      * @param TrainingCampain $trainingCampain
  245.      */
  246.     public function setTrainingCampain($trainingCampain)
  247.     {
  248.         $this->trainingCampain $trainingCampain;
  249.     }
  250.     /**
  251.      * @return \Doctrine\Common\Collections\Collection
  252.      */
  253.     public function getHistories()
  254.     {
  255.         return $this->histories;
  256.     }
  257.     /**
  258.      * @param \Doctrine\Common\Collections\Collection $histories
  259.      */
  260.     public function setHistories($histories): void
  261.     {
  262.         $this->histories $histories;
  263.     }
  264. }