<?phpnamespace App\Entity;use App\Repository\TeacherPaymentBonusProposalRepository;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=TeacherPaymentBonusProposalRepository::class) */class TeacherPaymentBonusProposal{ /** * @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) */ private $admin; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $status = 'NEW'; /** * @ORM\ManyToOne(targetEntity=Teacher::class, inversedBy="teacherPaymentBonusProposals") */ private $teacher; public function __construct() { $this->createdAt = new \DateTime(); } 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 getStatus(): ?string { return $this->status; } public function setStatus(?string $status): self { $this->status = $status; return $this; } public function getTeacher(): ?Teacher { return $this->teacher; } public function setTeacher(?Teacher $teacher): self { $this->teacher = $teacher; return $this; }}