src/Entity/Candidate.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\CandidateRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use App\Traits\EntityDateTimeAbleTrait;
  6. #[ORM\Entity(repositoryClassCandidateRepository::class)]
  7. #[ORM\HasLifecycleCallbacks]
  8. class Candidate
  9. {
  10.     use EntityDateTimeAbleTrait;
  11.     
  12.     #[ORM\Id]
  13.     #[ORM\GeneratedValue]
  14.     #[ORM\Column(type'integer')]
  15.     private $id;
  16.     #[ORM\Column(type'integer')]
  17.     private ?int $prefix null;
  18.     #[ORM\Column(type'string'length255nullabletrue)]
  19.     private ?string $firstName null;
  20.     #[ORM\Column(type'string'length255nullabletrue)]
  21.     private ?string $lastName null;
  22.     #[ORM\Column(type'string'length255nullabletrue)]
  23.     private ?string $email null;
  24.     #[ORM\Column(type'string'length255nullabletrue)]
  25.     private ?string $telephone null;
  26.     #[ORM\Column(type'integer'nullabletrue)]
  27.     private ?int $level null;
  28.     #[ORM\Column(type'string'length255nullabletrue)]
  29.     private ?string $study null;
  30.     #[ORM\Column(type'string'length255nullabletrue)]
  31.     private ?string $currentSchool null;
  32.     #[ORM\Column(type'string'length255nullabletrue)]
  33.     private ?string $schoolPostal null;
  34.     #[ORM\Column(type'string'length255nullabletrue)]
  35.     private ?string $schoolCity null;
  36.     #[ORM\ManyToOne(targetEntityCampus::class, inversedBy'candidates')]
  37.     private ?\App\Entity\Campus $campus null;
  38.     #[ORM\Column(type'boolean'nullabletrue)]
  39.     private ?bool $status null;
  40.     #[ORM\ManyToOne(targetEntityForum::class, inversedBy'candidates')]
  41.     private ?\App\Entity\Forum $forum null;
  42.     #[ORM\Column(type'datetime'nullabletrue)]
  43.     private ?\DateTimeInterface $date null;
  44.     public function getId(): ?int
  45.     {
  46.         return $this->id;
  47.     }
  48.     public function getPrefix(): ?int
  49.     {
  50.         return $this->prefix;
  51.     }
  52.     public function setPrefix(int $prefix): self
  53.     {
  54.         $this->prefix $prefix;
  55.         return $this;
  56.     }
  57.     public function getFirstName(): ?string
  58.     {
  59.         return $this->firstName;
  60.     }
  61.     public function setFirstName(?string $firstName): self
  62.     {
  63.         $this->firstName $firstName;
  64.         return $this;
  65.     }
  66.     public function getLastName(): ?string
  67.     {
  68.         return $this->lastName;
  69.     }
  70.     public function setLastName(?string $lastName): self
  71.     {
  72.         $this->lastName $lastName;
  73.         return $this;
  74.     }
  75.     public function getEmail(): ?string
  76.     {
  77.         return $this->email;
  78.     }
  79.     public function setEmail(?string $email): self
  80.     {
  81.         $this->email $email;
  82.         return $this;
  83.     }
  84.     public function getTelephone(): ?string
  85.     {
  86.         return $this->telephone;
  87.     }
  88.     public function setTelephone(?string $telephone): self
  89.     {
  90.         $this->telephone $telephone;
  91.         return $this;
  92.     }
  93.     public function getLevel(): ?int
  94.     {
  95.         return $this->level;
  96.     }
  97.     public function setLevel(?int $level): self
  98.     {
  99.         $this->level $level;
  100.         return $this;
  101.     }
  102.     public function getStudy(): ?string
  103.     {
  104.         return $this->study;
  105.     }
  106.     public function setStudy(?string $study): self
  107.     {
  108.         $this->study $study;
  109.         return $this;
  110.     }
  111.     public function getCurrentSchool(): ?string
  112.     {
  113.         return $this->currentSchool;
  114.     }
  115.     public function setCurrentSchool(?string $currentSchool): self
  116.     {
  117.         $this->currentSchool $currentSchool;
  118.         return $this;
  119.     }
  120.     public function getSchoolPostal(): ?string
  121.     {
  122.         return $this->schoolPostal;
  123.     }
  124.     public function setSchoolPostal(?string $schoolPostal): self
  125.     {
  126.         $this->schoolPostal $schoolPostal;
  127.         return $this;
  128.     }
  129.     public function getSchoolCity(): ?string
  130.     {
  131.         return $this->schoolCity;
  132.     }
  133.     public function setSchoolCity(?string $schoolCity): self
  134.     {
  135.         $this->schoolCity $schoolCity;
  136.         return $this;
  137.     }
  138.     public function getCampus(): ?Campus
  139.     {
  140.         return $this->campus;
  141.     }
  142.     public function setCampus(?Campus $campus): self
  143.     {
  144.         $this->campus $campus;
  145.         return $this;
  146.     }
  147.     public function getStatus(): ?bool
  148.     {
  149.         return $this->status;
  150.     }
  151.     public function setStatus(?bool $status): self
  152.     {
  153.         $this->status $status;
  154.         return $this;
  155.     }
  156.     public function getForum(): ?Forum
  157.     {
  158.         return $this->forum;
  159.     }
  160.     public function setForum(?Forum $forum): self
  161.     {
  162.         $this->forum $forum;
  163.         return $this;
  164.     }
  165.     public function getDate(): ?\DateTimeInterface
  166.     {
  167.         return $this->date;
  168.     }
  169.     public function setDate(?\DateTimeInterface $date): self
  170.     {
  171.         $this->date $date;
  172.         return $this;
  173.     }
  174. }