<?phpnamespace App\Entity;use App\Repository\TeacherHoursBonusRepository;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=TeacherHoursBonusRepository::class) */class TeacherHoursBonus{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\ManyToOne(targetEntity=Teacher::class, inversedBy="teacherHoursBonuses") */ private $teacher; /** * @ORM\Column(type="integer", nullable=true) */ private $hours; /** * @ORM\Column(type="text", nullable=true) */ private $comment; /** * @ORM\Column(type="datetime", nullable=true) */ private $createdAt; /** * @ORM\ManyToOne(targetEntity=Admin::class, inversedBy="teacherHoursBonuses") */ private $admin; public function getId(): ?int { return $this->id; } public function getTeacher(): ?Teacher { return $this->teacher; } public function setTeacher(?Teacher $teacher): self { $this->teacher = $teacher; return $this; } public function getHours(): ?int { return $this->hours; } public function setHours(?int $hours): self { $this->hours = $hours; return $this; } public function getComment(): ?string { return $this->comment; } public function setComment(?string $comment): self { $this->comment = $comment; return $this; } public function getCreatedAt(): ?\DateTimeInterface { return $this->createdAt; } public function setCreatedAt(?\DateTimeInterface $createdAt): self { $this->createdAt = $createdAt; return $this; } public function getAdmin(): ?Admin { return $this->admin; } public function setAdmin(?Admin $admin): self { $this->admin = $admin; return $this; }}