src/Entity/TraineeFormation.php line 9
<?phpnamespace App\Entity;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;use App\Repository\TraineeFormationRepository;#[ORM\Entity(repositoryClass: TraineeFormationRepository::class)]class TraineeFormation{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\ManyToOne(targetEntity: "Formation")]#[ORM\JoinColumn(name: "formation_id", referencedColumnName: "id")]private $formation;#[ORM\ManyToOne(targetEntity: "Trainee", inversedBy: "TraineeFormation")]#[ORM\JoinColumn(name: "trainee_id", referencedColumnName: "id")]private $trainee;#[ORM\Column(type: 'boolean', nullable: true)]private ?bool $sendConvocation = false;#[ORM\Column(type: 'boolean', nullable: true)]private ?bool $sendCertif = false;#[ORM\Column(type: 'integer',nullable: true)]private ?int $nbHour = 0;#[ORM\Column(type: Types::DATE_MUTABLE, nullable: true)]private ?\DateTimeInterface $dateAffectationFormation = null;#[ORM\Column(type: Types::DATE_MUTABLE, nullable: true)]private ?\DateTimeInterface $dateConvocation = null;#[ORM\Column(length: 255, nullable: true)]private ?string $knowledge = '';#[ORM\Column(length: 255, nullable: true)]private ?string $skills = '';#[ORM\Column(type: Types::TEXT, nullable: true)]private ?string $comments = '';public function getId(): ?int{return $this->id;}public function getFormation(){return $this->formation;}public function setFormation($formation){$this->formation = $formation;return $this;}public function getTrainee(){return $this->trainee;}public function setTrainee($trainee){$this->trainee = $trainee;return $this;}public function getSendConvocation(): ?string{return $this->sendConvocation;}public function setSendConvocation(?string $sendConvocation): self{$this->sendConvocation = $sendConvocation;return $this;}public function getDateAffectationFormation(): ?\DateTimeInterface{return $this->dateAffectationFormation;}public function setDateAffectationFormation(?\DateTimeInterface $dateAffectationFormation): self{$this->dateAffectationFormation = $dateAffectationFormation;return $this;}public function getDateConvocation(): ?\DateTimeInterface{return $this->dateConvocation;}public function setDateConvocation(?\DateTimeInterface $dateConvocation): self{$this->dateConvocation = $dateConvocation;return $this;}public function getKnowledge(): ?string{return $this->knowledge;}public function setKnowledge(string $knowledge): self{$this->knowledge = $knowledge;return $this;}public function getSkills(): ?string{return $this->skills;}public function setSkills(string $skills): self{$this->skills = $skills;return $this;}public function getComments(): ?string{return $this->comments;}public function setComments(string $comments): self{$this->comments = $comments;return $this;}public function getsendCertif(): ?string{return $this->sendCertif;}public function setSendCertif(?string $sendCertif): self{$this->sendCertif = $sendCertif;return $this;}public function getNbHour(): ?int{return $this->nbHour;}public function setNbHour(int $nbHour): self{$this->nbHour = $nbHour;return $this;}}