Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

89 linhas
1.7KB

  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. }