src/Entity/MonthlyCommissionTotal.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\MonthlyCommissionTotalRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=MonthlyCommissionTotalRepository::class)
  7.  */
  8. class MonthlyCommissionTotal
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     public function getId(): ?int
  17.     {
  18.         return $this->id;
  19.     }
  20.     /**
  21.      * @ORM\ManyToOne(targetEntity="App\Entity\User")
  22.      * @ORM\JoinColumn(nullable=false)
  23.      */
  24.     private $user;
  25.     /**
  26.      * @ORM\Column(type="decimal", scale=2)
  27.      */
  28.     private $totalCommissions;
  29.     /**
  30.      * @ORM\Column(type="string", length=7) // Format: YYYY-MM
  31.      */
  32.     private $month;
  33.     /**
  34.      * @ORM\Column(type="boolean")
  35.      */
  36.     private $paidStatus false;
  37.     /**
  38.      * @ORM\Column(type="decimal", precision=10, scale=2, nullable=true)
  39.      */
  40.     private $balance;
  41.     /**
  42.      * @return mixed
  43.      */
  44.     public function getUser()
  45.     {
  46.         return $this->user;
  47.     }
  48.     /**
  49.      * @param mixed $user
  50.      */
  51.     public function setUser($user): void
  52.     {
  53.         $this->user $user;
  54.     }
  55.     /**
  56.      * @return mixed
  57.      */
  58.     public function getTotalCommissions()
  59.     {
  60.         return $this->totalCommissions;
  61.     }
  62.     /**
  63.      * @param mixed $totalCommissions
  64.      */
  65.     public function setTotalCommissions($totalCommissions): void
  66.     {
  67.         $this->totalCommissions $totalCommissions;
  68.     }
  69.     /**
  70.      * @return mixed
  71.      */
  72.     public function getMonth()
  73.     {
  74.         return $this->month;
  75.     }
  76.     /**
  77.      * @param mixed $month
  78.      */
  79.     public function setMonth($month): void
  80.     {
  81.         $this->month $month;
  82.     }
  83.     /**
  84.      * @return bool
  85.      */
  86.     public function isPaidStatus(): bool
  87.     {
  88.         return $this->paidStatus;
  89.     }
  90.     /**
  91.      * @param bool $paidStatus
  92.      */
  93.     public function setPaidStatus(bool $paidStatus): void
  94.     {
  95.         $this->paidStatus $paidStatus;
  96.     }
  97.     public function getBalance(): ?string
  98.     {
  99.         return $this->balance;
  100.     }
  101.     public function setBalance(?string $balance): self
  102.     {
  103.         $this->balance $balance;
  104.         return $this;
  105.     }
  106. }