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.     #[ORM\Column(type'boolean'nullabletrue)]
  36.     private ?bool $isPresent false;
  37.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  38.     private ?\DateTimeInterface $signedAt null;
  39.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  40.     private ?string $signature null;
  41.     #[ORM\Column(length100nullabletrue)]
  42.     private ?string $periode null;
  43.     #[ORM\Column(typeTypes::DATE_MUTABLEnullabletrue)]
  44.     private ?\DateTimeInterface $attendanceDate null;
  45.     public function getId(): ?int
  46.     {
  47.         return $this->id;
  48.     }
  49.     public function getFormation()
  50.     {
  51.         return $this->formation;
  52.     }
  53.     public function setFormation($formation)
  54.     {
  55.         $this->formation $formation;
  56.         return $this;
  57.     }
  58.     public function getTrainee()
  59.     {
  60.         return $this->trainee;
  61.     }
  62.     public function setTrainee($trainee)
  63.     {
  64.         $this->trainee $trainee;
  65.         return $this;
  66.     }
  67.     public function getSendConvocation(): ?string
  68.     {
  69.         return $this->sendConvocation;
  70.     }
  71.     public function setSendConvocation(?string $sendConvocation): self
  72.     {
  73.         $this->sendConvocation $sendConvocation;
  74.         return $this;
  75.     }
  76.     public function getDateAffectationFormation(): ?\DateTimeInterface
  77.     {
  78.         return $this->dateAffectationFormation;
  79.     }
  80.     public function setDateAffectationFormation(?\DateTimeInterface $dateAffectationFormation): self
  81.     {
  82.         $this->dateAffectationFormation $dateAffectationFormation;
  83.         return $this;
  84.     }
  85.     public function getDateConvocation(): ?\DateTimeInterface
  86.     {
  87.         return $this->dateConvocation;
  88.     }
  89.     public function setDateConvocation(?\DateTimeInterface $dateConvocation): self
  90.     {
  91.         $this->dateConvocation $dateConvocation;
  92.         return $this;
  93.     }
  94.     public function getKnowledge(): ?string
  95.     {
  96.         return $this->knowledge;
  97.     }
  98.     public function setKnowledge(string $knowledge): self
  99.     {
  100.         $this->knowledge $knowledge;
  101.         return $this;
  102.     }
  103.     public function getSkills(): ?string
  104.     {
  105.         return $this->skills;
  106.     }
  107.     public function setSkills(string $skills): self
  108.     {
  109.         $this->skills $skills;
  110.         return $this;
  111.     }
  112.     public function getComments(): ?string
  113.     {
  114.         return $this->comments;
  115.     }
  116.     public function setComments(string $comments): self
  117.     {
  118.         $this->comments $comments;
  119.         return $this;
  120.     }
  121.     public function getsendCertif(): ?string
  122.     {
  123.         return $this->sendCertif;
  124.     }
  125.     public function setSendCertif(?string $sendCertif): self
  126.     {
  127.         $this->sendCertif $sendCertif;
  128.         return $this;
  129.     }
  130.     public function getNbHour(): ?int
  131.     {
  132.         return $this->nbHour;
  133.     }
  134.     public function setNbHour(int $nbHour): self
  135.     {
  136.         $this->nbHour $nbHour;
  137.         return $this;
  138.     }
  139.     public function getIsPresent(): ?bool
  140.     {
  141.         return $this->isPresent;
  142.     }
  143.     public function setIsPresent(?bool $isPresent): self
  144.     {
  145.         $this->isPresent $isPresent;
  146.         return $this;
  147.     }
  148.     public function getSignature(): ?string
  149.     {
  150.         return $this->signature;
  151.     }
  152.     public function setSignature(?string $signature): self
  153.     {
  154.         $this->signature $signature;
  155.         return $this;
  156.     }
  157.     public function getPeriode(): ?string
  158.     {
  159.         return $this->periode;
  160.     }
  161.     public function setPeriode(?string $periode): self
  162.     {
  163.         $this->periode $periode;
  164.         return $this;
  165.     }
  166.     public function getAttendanceDate(): ?\DateTimeInterface
  167.     {
  168.         return $this->attendanceDate;
  169.     }
  170.     public function setAttendanceDate(?\DateTimeInterface $attendanceDate): self
  171.     {
  172.         $this->attendanceDate $attendanceDate;
  173.         return $this;
  174.     }
  175.     public function getSignedAt(): ?\DateTimeInterface
  176.     {
  177.         return $this->signedAt;
  178.     }
  179.     public function setSignedAt(?\DateTimeInterface $signedAt): self
  180.     {
  181.         $this->signedAt $signedAt;
  182.         return $this;
  183.     }
  184. }