ReductionCartPropertyTrait.php 1.2KB

пре 4 година
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <?php
  2. namespace Lc\ShopBundle\Model;
  3. use Doctrine\ORM\Mapping as ORM;
  4. trait ReductionCartPropertyTrait
  5. {
  6. /**
  7. * @ORM\Column(type="boolean", nullable=true)
  8. */
  9. protected $freeShipping;
  10. /**
  11. * @ORM\Column(type="string", length=25)
  12. */
  13. protected $appliedTo;
  14. /**
  15. * @ORM\Column(type="string", length=25)
  16. */
  17. protected $type;
  18. public function getFreeShipping(): ?bool
  19. {
  20. return $this->freeShipping;
  21. }
  22. public function setFreeShipping(?bool $freeShipping): self
  23. {
  24. $this->freeShipping = $freeShipping;
  25. return $this;
  26. }
  27. public function getAppliedTo(): ?string
  28. {
  29. return $this->appliedTo;
  30. }
  31. public function setAppliedTo(string $appliedTo): self
  32. {
  33. $this->appliedTo = $appliedTo;
  34. return $this;
  35. }
  36. public function getType(): ?string
  37. {
  38. return $this->type;
  39. }
  40. public function setType(string $type): self
  41. {
  42. $this->type = $type;
  43. return $this;
  44. }
  45. }