You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

OrderProductRefundModel.php 1.7KB

пре 3 година
пре 3 година
пре 3 година
пре 3 година
пре 3 година
пре 3 година
пре 3 година
пре 3 година
пре 3 година
пре 3 година
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <?php
  2. namespace Lc\CaracoleBundle\Model\Order;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Lc\SovBundle\Doctrine\EntityInterface;
  5. /**
  6. * @ORM\MappedSuperclass()
  7. */
  8. abstract class OrderProductRefundModel implements EntityInterface, OrderProductRefundInterface
  9. {
  10. /**
  11. * @ORM\Column(type="integer")
  12. */
  13. protected $quantityRefund;
  14. /**
  15. * @ORM\Column(type="string", length=255, nullable=true)
  16. */
  17. protected $title;
  18. /**
  19. * @ORM\Column(type="float")
  20. */
  21. protected $price;
  22. /**
  23. * @ORM\OneToOne(targetEntity="Lc\CaracoleBundle\Model\Order\OrderProductInterface")
  24. * @ORM\JoinColumn(nullable=false)
  25. */
  26. protected $orderProduct;
  27. public function getQuantityRefund(): ?int
  28. {
  29. return $this->quantityRefund;
  30. }
  31. public function setQuantityOrder(int $quantityRefund): self
  32. {
  33. $this->quantityRefund = $quantityRefund;
  34. return $this;
  35. }
  36. public function getPrice(): ?float
  37. {
  38. return $this->getPrice();
  39. }
  40. public function setPrice(?float $price): self
  41. {
  42. $this->price = $price;
  43. return $this;
  44. }
  45. public function getTitleInherited(): ?string
  46. {
  47. return $this->title;
  48. }
  49. public function getTitle(): ?string
  50. {
  51. return $this->title;
  52. }
  53. public function setTitle(string $title): self
  54. {
  55. $this->title = $title;
  56. return $this;
  57. }
  58. public function getOrderProduct(): ?OrderProductInterface
  59. {
  60. return $this->orderProduct;
  61. }
  62. public function setOrderProduct(OrderProductInterface $orderProduct): self
  63. {
  64. $this->orderProduct = $orderProduct;
  65. return $this;
  66. }
  67. }