src/Entity/Emargement.php line 10
<?phpnamespace App\Entity;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity]#[ORM\Table(name: 'emargement')]class Emargement{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\ManyToOne(targetEntity: Formation::class)]#[ORM\JoinColumn(nullable: false, onDelete: 'CASCADE')]private ?Formation $formation = null;#[ORM\ManyToOne(targetEntity: Trainee::class)]#[ORM\JoinColumn(nullable: true, onDelete: 'SET NULL')]private ?Trainee $trainee = null;#[ORM\ManyToOne(targetEntity: User::class)]#[ORM\JoinColumn(nullable: true, onDelete: 'SET NULL')]private ?User $trainer = null;#[ORM\Column(type: Types::DATE_MUTABLE)]private ?\DateTimeInterface $attendanceDate = null;#[ORM\Column(length: 100)]private ?string $period = null;#[ORM\Column(type: Types::DATETIME_MUTABLE)]private ?\DateTimeInterface $signedAt = null;#[ORM\Column(length: 255, nullable: true)]private ?string $company = null;#[ORM\Column(type: Types::TEXT, nullable: true)]private ?string $comments = null;#[ORM\Column(type: Types::TEXT, nullable: true)]private ?string $signature = null;public function getId(): ?int{return $this->id;}public function getFormation(): ?Formation{return $this->formation;}public function setFormation(?Formation $formation): self{$this->formation = $formation;return $this;}public function getTrainee(): ?Trainee{return $this->trainee;}public function setTrainee(?Trainee $trainee): self{$this->trainee = $trainee;return $this;}public function getTrainer(): ?User{return $this->trainer;}public function setTrainer(?User $trainer): self{$this->trainer = $trainer;return $this;}public function getAttendanceDate(): ?\DateTimeInterface{return $this->attendanceDate;}public function setAttendanceDate(?\DateTimeInterface $attendanceDate): self{$this->attendanceDate = $attendanceDate;return $this;}public function getPeriod(): ?string{return $this->period;}public function setPeriod(?string $period): self{$this->period = $period;return $this;}public function getSignedAt(): ?\DateTimeInterface{return $this->signedAt;}public function setSignedAt(?\DateTimeInterface $signedAt): self{$this->signedAt = $signedAt;return $this;}public function getCompany(): ?string{return $this->company;}public function setCompany(?string $company): self{$this->company = $company;return $this;}public function getComments(): ?string{return $this->comments;}public function setComments(?string $comments): self{$this->comments = $comments;return $this;}public function getSignature(): ?string{return $this->signature;}public function setSignature(?string $signature): self{$this->signature = $signature;return $this;}}