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