<?php
namespace App\Entity;
use App\Repository\CandidateRepository;
use Doctrine\ORM\Mapping as ORM;
use App\Traits\EntityDateTimeAbleTrait;
#[ORM\Entity(repositoryClass: CandidateRepository::class)]
#[ORM\HasLifecycleCallbacks]
class Candidate
{
use EntityDateTimeAbleTrait;
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\Column(type: 'integer')]
private ?int $prefix = null;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private ?string $firstName = null;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private ?string $lastName = null;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private ?string $email = null;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private ?string $telephone = null;
#[ORM\Column(type: 'integer', nullable: true)]
private ?int $level = null;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private ?string $study = null;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private ?string $currentSchool = null;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private ?string $schoolPostal = null;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private ?string $schoolCity = null;
#[ORM\ManyToOne(targetEntity: Campus::class, inversedBy: 'candidates')]
private ?\App\Entity\Campus $campus = null;
#[ORM\Column(type: 'boolean', nullable: true)]
private ?bool $status = null;
#[ORM\ManyToOne(targetEntity: Forum::class, inversedBy: 'candidates')]
private ?\App\Entity\Forum $forum = null;
#[ORM\Column(type: 'datetime', nullable: true)]
private ?\DateTimeInterface $date = null;
public function getId(): ?int
{
return $this->id;
}
public function getPrefix(): ?int
{
return $this->prefix;
}
public function setPrefix(int $prefix): self
{
$this->prefix = $prefix;
return $this;
}
public function getFirstName(): ?string
{
return $this->firstName;
}
public function setFirstName(?string $firstName): self
{
$this->firstName = $firstName;
return $this;
}
public function getLastName(): ?string
{
return $this->lastName;
}
public function setLastName(?string $lastName): self
{
$this->lastName = $lastName;
return $this;
}
public function getEmail(): ?string
{
return $this->email;
}
public function setEmail(?string $email): self
{
$this->email = $email;
return $this;
}
public function getTelephone(): ?string
{
return $this->telephone;
}
public function setTelephone(?string $telephone): self
{
$this->telephone = $telephone;
return $this;
}
public function getLevel(): ?int
{
return $this->level;
}
public function setLevel(?int $level): self
{
$this->level = $level;
return $this;
}
public function getStudy(): ?string
{
return $this->study;
}
public function setStudy(?string $study): self
{
$this->study = $study;
return $this;
}
public function getCurrentSchool(): ?string
{
return $this->currentSchool;
}
public function setCurrentSchool(?string $currentSchool): self
{
$this->currentSchool = $currentSchool;
return $this;
}
public function getSchoolPostal(): ?string
{
return $this->schoolPostal;
}
public function setSchoolPostal(?string $schoolPostal): self
{
$this->schoolPostal = $schoolPostal;
return $this;
}
public function getSchoolCity(): ?string
{
return $this->schoolCity;
}
public function setSchoolCity(?string $schoolCity): self
{
$this->schoolCity = $schoolCity;
return $this;
}
public function getCampus(): ?Campus
{
return $this->campus;
}
public function setCampus(?Campus $campus): self
{
$this->campus = $campus;
return $this;
}
public function getStatus(): ?bool
{
return $this->status;
}
public function setStatus(?bool $status): self
{
$this->status = $status;
return $this;
}
public function getForum(): ?Forum
{
return $this->forum;
}
public function setForum(?Forum $forum): self
{
$this->forum = $forum;
return $this;
}
public function getDate(): ?\DateTimeInterface
{
return $this->date;
}
public function setDate(?\DateTimeInterface $date): self
{
$this->date = $date;
return $this;
}
}