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.

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