<?phpnamespace App\Entity;use App\Repository\TeacherPaymentBonusRepository;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=TeacherPaymentBonusRepository::class) */class TeacherPaymentBonus{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="float", nullable=true) */ private $amount; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $comment; /** * @ORM\Column(type="datetime", nullable=true) */ private $createdAt; /** * @ORM\ManyToOne(targetEntity=Admin::class, inversedBy="teacherPaymentBonuses") */ private $admin; /** * @ORM\ManyToOne(targetEntity=TeacherPayment::class, inversedBy="teacherPaymentBonuses") */ private $teacherPayment; public function getId(): ?int { return $this->id; } public function getAmount(): ?float { return $this->amount; } public function setAmount(?float $amount): self { $this->amount = $amount; 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; } public function getTeacherPayment(): ?TeacherPayment { return $this->teacherPayment; } public function setTeacherPayment(?TeacherPayment $teacherPayment): self { $this->teacherPayment = $teacherPayment; return $this; }}