src/Entity/Bonus.php line 11

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