src/Entity/ProgramCandidate.php line 9

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ProgramCandidateRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassProgramCandidateRepository::class)]
  6. class ProgramCandidate
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column]
  11.     private ?int $id null;
  12.     #[ORM\ManyToOne(inversedBy'programCandidates')]
  13.     private ?Program $program null;
  14.     #[ORM\ManyToOne(inversedBy'programCandidates')]
  15.     private ?Candidate $candidate null;
  16.     #[ORM\Column(length255)]
  17.     private ?string $status null;
  18.     #[ORM\ManyToOne(inversedBy'company')]
  19.     private ?Groupe $groupe null;
  20.     #[ORM\ManyToOne(inversedBy'programCandidates')]
  21.     private ?Company $company null;
  22.     public function getId(): ?int
  23.     {
  24.         return $this->id;
  25.     }
  26.     public function getProgram(): ?Program
  27.     {
  28.         return $this->program;
  29.     }
  30.     public function setProgram(?Program $program): self
  31.     {
  32.         $this->program $program;
  33.         return $this;
  34.     }
  35.     public function getCandidate(): ?Candidate
  36.     {
  37.         return $this->candidate;
  38.     }
  39.     public function setCandidate(?Candidate $candidate): self
  40.     {
  41.         $this->candidate $candidate;
  42.         return $this;
  43.     }
  44.     public function getStatus(): ?string
  45.     {
  46.         return $this->status;
  47.     }
  48.     public function setStatus(string $status): self
  49.     {
  50.         $this->status $status;
  51.         return $this;
  52.     }
  53.     public function getGroupe(): ?Groupe
  54.     {
  55.         return $this->groupe;
  56.     }
  57.     public function setGroupe(?Groupe $groupe): self
  58.     {
  59.         $this->groupe $groupe;
  60.         return $this;
  61.     }
  62.     public function getCompany(): ?Company
  63.     {
  64.         return $this->company;
  65.     }
  66.     public function setCompany(?Company $company): self
  67.     {
  68.         $this->company $company;
  69.         return $this;
  70.     }
  71. }