src/Entity/System/Discount.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity\System;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. * @ORM\Entity(repositoryClass="App\Repository\System\DiscountRepository")
  6. *
  7. * @ORM\Table(name="ps_discount")
  8. */
  9. class Discount
  10. {
  11. /**
  12. * @var int
  13. *
  14. * @ORM\Id
  15. *
  16. * @ORM\GeneratedValue(strategy="AUTO")
  17. *
  18. * @ORM\Column(type="integer", name="id_discount")
  19. */
  20. private int $id;
  21. /**
  22. * @var int
  23. *
  24. * @ORM\Column(type="integer")
  25. */
  26. private int $quantity;
  27. /**
  28. * @var float
  29. *
  30. * @ORM\Column(type="float", precision=20, scale=6)
  31. */
  32. private float $reduction;
  33. public function getId(): int
  34. {
  35. return $this->id;
  36. }
  37. public function getQuantity(): int
  38. {
  39. return $this->quantity;
  40. }
  41. public function setQuantity(int $quantity): Discount
  42. {
  43. $this->quantity = $quantity;
  44. return $this;
  45. }
  46. public function getReduction(): float
  47. {
  48. return $this->reduction;
  49. }
  50. public function setReduction(float $reduction): Discount
  51. {
  52. $this->reduction = $reduction;
  53. return $this;
  54. }
  55. }