src/Entity/Commission.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\CommissionRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=CommissionRepository::class)
  7.  */
  8. class Commission
  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="commissions")
  18.      */
  19.     private $user;
  20.     /**
  21.      * @ORM\Column(type="decimal", precision=10, scale=2)
  22.      */
  23.     private $amount;
  24.     /**
  25.      * @ORM\Column(type="float")
  26.      */
  27.     private $level;
  28.     /**
  29.      * @ORM\Column(type="datetime")
  30.      */
  31.     private $date;
  32.     /**
  33.      * @ORM\ManyToOne(targetEntity=Orders::class, inversedBy="commissions")
  34.      */
  35.     private $orderid;
  36.     public function getId(): ?int
  37.     {
  38.         return $this->id;
  39.     }
  40.     public function getUser(): ?User
  41.     {
  42.         return $this->user;
  43.     }
  44.     public function setUser(?User $user): self
  45.     {
  46.         $this->user $user;
  47.         return $this;
  48.     }
  49.     public function getAmount(): ?string
  50.     {
  51.         return $this->amount;
  52.     }
  53.     public function setAmount(string $amount): self
  54.     {
  55.         $this->amount $amount;
  56.         return $this;
  57.     }
  58.     public function getLevel(): ?float
  59.     {
  60.         return $this->level;
  61.     }
  62.     public function setLevel(float $level): self
  63.     {
  64.         $this->level $level;
  65.         return $this;
  66.     }
  67.     public function getDate(): ?\DateTimeInterface
  68.     {
  69.         return $this->date;
  70.     }
  71.     public function setDate(\DateTimeInterface $date): self
  72.     {
  73.         $this->date $date;
  74.         return $this;
  75.     }
  76.     public function getOrderid(): ?Orders
  77.     {
  78.         return $this->orderid;
  79.     }
  80.     public function setOrderid(?Orders $orderid): self
  81.     {
  82.         $this->orderid $orderid;
  83.         return $this;
  84.     }
  85. }