src/Entity/TrainingCampain.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * TrainingCampain
  6.  *
  7.  * @ORM\Table(name="training_campain", uniqueConstraints={@ORM\UniqueConstraint(name="training_campain_id_uindex", columns={"id"})}, indexes={@ORM\Index(name="training_campain_training_id_fk", columns={"training_id"}), @ORM\Index(name="training_campain_user_id_fk", columns={"user_id"})})
  8.  * @ORM\Entity(repositoryClass="App\Repository\TrainingCampainRepository")
  9.  */
  10. class TrainingCampain
  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 \DateTime
  22.      *
  23.      * @ORM\Column(name="creation_date", type="datetime", nullable=true)
  24.      */
  25.     private $creationDate;
  26.     /**
  27.      * @var array
  28.      *
  29.      * @ORM\Column(name="questions", type="array", nullable=true)
  30.      */
  31.     private $questions;
  32.     /**
  33.      * @var array
  34.      *
  35.      * @ORM\Column(name="answers", type="array", nullable=true)
  36.      */
  37.     private $answers;
  38.     /**
  39.      * @var string|null
  40.      *
  41.      * @ORM\Column(name="title", type="string", length=255, nullable=true)
  42.      */
  43.     private $title;
  44.     /**
  45.      * @var array
  46.      *
  47.      * @ORM\Column(name="emails", type="array", nullable=true)
  48.      */
  49.     private $emails = [];
  50.     /**
  51.      * @var integer
  52.      *
  53.      * @ORM\Column(name="emails_count", type="integer", nullable=false)
  54.      */
  55.     private $emailsCount 0;
  56.     /**
  57.      * @var boolean|null
  58.      *
  59.      * @ORM\Column(name="traineeship", type="boolean", nullable=true)
  60.      */
  61.     private $traineeship false;
  62.     /**
  63.      * @var \DateTime|null
  64.      *
  65.      * @ORM\Column(name="traineeship_date", type="datetime", nullable=true)
  66.      */
  67.     private $traineeshipDate;
  68.     /**
  69.      * @var string|null
  70.      *
  71.      * @ORM\Column(name="former", type="string", length=255, nullable=true)
  72.      */
  73.     private $former;
  74.     /**
  75.      * @var boolean|null
  76.      *
  77.      * @ORM\Column(name="external", type="boolean", nullable=true)
  78.      */
  79.     private $external false;
  80.     /**
  81.      * @var Training
  82.      *
  83.      * @ORM\ManyToOne(targetEntity="Training")
  84.      * @ORM\JoinColumns({
  85.      *   @ORM\JoinColumn(name="training_id", referencedColumnName="id")
  86.      * })
  87.      */
  88.     private $training;
  89.     /**
  90.      * @var User
  91.      *
  92.      * @ORM\ManyToOne(targetEntity="User")
  93.      * @ORM\JoinColumns({
  94.      *   @ORM\JoinColumn(name="user_id", referencedColumnName="id")
  95.      * })
  96.      */
  97.     private $user;
  98.     /**
  99.      * @var \Doctrine\Common\Collections\Collection
  100.      *
  101.      * @ORM\ManyToMany(targetEntity="TrainingTeam", inversedBy="campains")
  102.      * @ORM\JoinTable(name="training_campain_has_team",
  103.      *   joinColumns={
  104.      *     @ORM\JoinColumn(name="training_campain_id", referencedColumnName="id")
  105.      *   },
  106.      *   inverseJoinColumns={
  107.      *     @ORM\JoinColumn(name="training_team_id", referencedColumnName="id")
  108.      *   }
  109.      * )
  110.      */
  111.     private $teams;
  112.     /**
  113.      * Constructor
  114.      */
  115.     public function __construct()
  116.     {
  117.         $this->teams = new \Doctrine\Common\Collections\ArrayCollection();
  118.     }
  119.     /**
  120.      * @return int
  121.      */
  122.     public function getId()
  123.     {
  124.         return $this->id;
  125.     }
  126.     /**
  127.      * @param int $id
  128.      */
  129.     public function setId($id)
  130.     {
  131.         $this->id $id;
  132.     }
  133.     /**
  134.      * @return \DateTime|null
  135.      */
  136.     public function getCreationDate()
  137.     {
  138.         return $this->creationDate;
  139.     }
  140.     /**
  141.      * @param \DateTime|null $creationDate
  142.      */
  143.     public function setCreationDate($creationDate)
  144.     {
  145.         $this->creationDate $creationDate;
  146.     }
  147.     /**
  148.      * @return array
  149.      */
  150.     public function getQuestions()
  151.     {
  152.         return $this->questions;
  153.     }
  154.     /**
  155.      * @param array $questions
  156.      */
  157.     public function setQuestions($questions)
  158.     {
  159.         $this->questions $questions;
  160.     }
  161.     /**
  162.      * @return array
  163.      */
  164.     public function getAnswers()
  165.     {
  166.         return $this->answers;
  167.     }
  168.     /**
  169.      * @param array $answers
  170.      */
  171.     public function setAnswers($answers)
  172.     {
  173.         $this->answers $answers;
  174.     }
  175.     /**
  176.      * @return string|null
  177.      */
  178.     public function getTitle(): ?string
  179.     {
  180.         return $this->title;
  181.     }
  182.     /**
  183.      * @param string|null $title
  184.      */
  185.     public function setTitle(?string $title): void
  186.     {
  187.         $this->title $title;
  188.     }
  189.     /**
  190.      * @return array
  191.      */
  192.     public function getEmails()
  193.     {
  194.         return $this->emails;
  195.     }
  196.     /**
  197.      * @param array $emails
  198.      */
  199.     public function setEmails($emails)
  200.     {
  201.         $this->emails $emails;
  202.     }
  203.     /**
  204.      * @return int
  205.      */
  206.     public function getEmailsCount()
  207.     {
  208.         return $this->emailsCount;
  209.     }
  210.     /**
  211.      * @param int $emailsCount
  212.      */
  213.     public function setEmailsCount($emailsCount)
  214.     {
  215.         $this->emailsCount $emailsCount;
  216.     }
  217.     /**
  218.      * @return bool|null
  219.      */
  220.     public function getTraineeship()
  221.     {
  222.         return $this->traineeship;
  223.     }
  224.     /**
  225.      * @param bool|null $traineeship
  226.      */
  227.     public function setTraineeship($traineeship)
  228.     {
  229.         $this->traineeship $traineeship;
  230.     }
  231.     /**
  232.      * @return \DateTime|null
  233.      */
  234.     public function getTraineeshipDate()
  235.     {
  236.         return $this->traineeshipDate;
  237.     }
  238.     /**
  239.      * @param \DateTime|null $traineeshipDate
  240.      */
  241.     public function setTraineeshipDate($traineeshipDate)
  242.     {
  243.         $this->traineeshipDate $traineeshipDate;
  244.     }
  245.     /**
  246.      * @return string|null
  247.      */
  248.     public function getFormer()
  249.     {
  250.         return $this->former;
  251.     }
  252.     /**
  253.      * @param string|null $former
  254.      */
  255.     public function setFormer($former)
  256.     {
  257.         $this->former $former;
  258.     }
  259.     /**
  260.      * @return bool|null
  261.      */
  262.     public function getExternal()
  263.     {
  264.         return $this->external;
  265.     }
  266.     /**
  267.      * @param bool|null $external
  268.      */
  269.     public function setExternal(?bool $external)
  270.     {
  271.         $this->external $external;
  272.     }
  273.     /**
  274.      * @return Training
  275.      */
  276.     public function getTraining()
  277.     {
  278.         return $this->training;
  279.     }
  280.     /**
  281.      * @param Training $training
  282.      */
  283.     public function setTraining($training)
  284.     {
  285.         $this->training $training;
  286.     }
  287.     /**
  288.      * @return User
  289.      */
  290.     public function getUser()
  291.     {
  292.         return $this->user;
  293.     }
  294.     /**
  295.      * @param User $user
  296.      */
  297.     public function setUser($user)
  298.     {
  299.         $this->user $user;
  300.     }
  301.     /**
  302.      * @return \Doctrine\Common\Collections\Collection
  303.      */
  304.     public function getTeams()
  305.     {
  306.         return $this->teams;
  307.     }
  308.     /**
  309.      * @param \Doctrine\Common\Collections\Collection $teams
  310.      */
  311.     public function setTeams($teams): void
  312.     {
  313.         $this->teams $teams;
  314.     }
  315. }