src/Entity/TraineeFormation.php line 9

  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\DBAL\Types\Types;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use App\Repository\TraineeFormationRepository;
  6. #[ORM\Entity(repositoryClassTraineeFormationRepository::class)]
  7. class TraineeFormation
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\ManyToOne(targetEntity"Formation")]
  14.     #[ORM\JoinColumn(name"formation_id"referencedColumnName"id")]
  15.     private $formation;
  16.     #[ORM\ManyToOne(targetEntity"Trainee"inversedBy"TraineeFormation")]
  17.     #[ORM\JoinColumn(name"trainee_id"referencedColumnName"id")]
  18.     private $trainee;
  19.     #[ORM\Column(type'boolean'nullabletrue)]
  20.     private ?bool $sendConvocation false;
  21.     #[ORM\Column(type'boolean'nullabletrue)]
  22.     private ?bool $sendCertif false;
  23.     #[ORM\Column(type'integer',nullabletrue)]
  24.     private ?int $nbHour 0;
  25.     #[ORM\Column(typeTypes::DATE_MUTABLEnullabletrue)]
  26.     private ?\DateTimeInterface $dateAffectationFormation null;
  27.     #[ORM\Column(typeTypes::DATE_MUTABLEnullabletrue)]
  28.     private ?\DateTimeInterface $dateConvocation null;
  29.     #[ORM\Column(length255nullabletrue)]
  30.     private ?string $knowledge '';
  31.     #[ORM\Column(length255nullabletrue)]
  32.     private ?string $skills '';
  33.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  34.     private ?string $comments '';
  35.     public function getId(): ?int
  36.     {
  37.         return $this->id;
  38.     }
  39.     public function getFormation()
  40.     {
  41.         return $this->formation;
  42.     }
  43.     public function setFormation($formation)
  44.     {
  45.         $this->formation $formation;
  46.         return $this;
  47.     }
  48.     public function getTrainee()
  49.     {
  50.         return $this->trainee;
  51.     }
  52.     public function setTrainee($trainee)
  53.     {
  54.         $this->trainee $trainee;
  55.         return $this;
  56.     }
  57.     public function getSendConvocation(): ?string
  58.     {
  59.         return $this->sendConvocation;
  60.     }
  61.     public function setSendConvocation(?string $sendConvocation): self
  62.     {
  63.         $this->sendConvocation $sendConvocation;
  64.         return $this;
  65.     }
  66.     public function getDateAffectationFormation(): ?\DateTimeInterface
  67.     {
  68.         return $this->dateAffectationFormation;
  69.     }
  70.     public function setDateAffectationFormation(?\DateTimeInterface $dateAffectationFormation): self
  71.     {
  72.         $this->dateAffectationFormation $dateAffectationFormation;
  73.         return $this;
  74.     }
  75.     public function getDateConvocation(): ?\DateTimeInterface
  76.     {
  77.         return $this->dateConvocation;
  78.     }
  79.     public function setDateConvocation(?\DateTimeInterface $dateConvocation): self
  80.     {
  81.         $this->dateConvocation $dateConvocation;
  82.         return $this;
  83.     }
  84.     public function getKnowledge(): ?string
  85.     {
  86.         return $this->knowledge;
  87.     }
  88.     public function setKnowledge(string $knowledge): self
  89.     {
  90.         $this->knowledge $knowledge;
  91.         return $this;
  92.     }
  93.     public function getSkills(): ?string
  94.     {
  95.         return $this->skills;
  96.     }
  97.     public function setSkills(string $skills): self
  98.     {
  99.         $this->skills $skills;
  100.         return $this;
  101.     }
  102.     public function getComments(): ?string
  103.     {
  104.         return $this->comments;
  105.     }
  106.     public function setComments(string $comments): self
  107.     {
  108.         $this->comments $comments;
  109.         return $this;
  110.     }
  111.     public function getsendCertif(): ?string
  112.     {
  113.         return $this->sendCertif;
  114.     }
  115.     public function setSendCertif(?string $sendCertif): self
  116.     {
  117.         $this->sendCertif $sendCertif;
  118.         return $this;
  119.     }
  120.     public function getNbHour(): ?int
  121.     {
  122.         return $this->nbHour;
  123.     }
  124.     public function setNbHour(int $nbHour): self
  125.     {
  126.         $this->nbHour $nbHour;
  127.         return $this;
  128.     }
  129. }