<?phpnamespace App\Entity;use App\Repository\BonusRepository;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=BonusRepository::class) */class Bonus{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\ManyToOne(targetEntity=User::class, inversedBy="bonuses") */ private $user; /** * @ORM\Column(type="decimal", scale=2) */ private $amount; /** * @ORM\Column(type="string", length=255) */ private $level; /** * @ORM\Column(type="string", length=7) // Format: YYYY-MM */ private $month; /** * @ORM\Column(type="boolean", nullable=true) */ private $paidStatus; /** * @ORM\Column(type="decimal", precision=10, scale=2, nullable=true) */ private $balance; public function getId(): ?int { return $this->id; } public function getUser(): ?User { return $this->user; } public function setUser(?User $user): self { $this->user = $user; return $this; } /** * @return mixed */ public function getAmount() { return $this->amount; } /** * @param mixed $amount */ public function setAmount($amount): void { $this->amount = $amount; } /** * @return mixed */ public function getLevel() { return $this->level; } /** * @param mixed $level */ public function setLevel($level): void { $this->level = $level; } /** * @return mixed */ public function getMonth() { return $this->month; } /** * @param mixed $month */ public function setMonth($month): void { $this->month = $month; } public function isPaidStatus(): ?bool { return $this->paidStatus; } public function setPaidStatus(?bool $paidStatus): self { $this->paidStatus = $paidStatus; return $this; } public function getBalance(): ?string { return $this->balance; } public function setBalance(?string $balance): self { $this->balance = $balance; return $this; }}