64 linhas
1.4KB

  1. <?php
  2. namespace Lc\ShopBundle\Model;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. * @ORM\MappedSuperclass()
  6. */
  7. abstract class OrderStatusHistory extends AbstractEntity
  8. {
  9. /**
  10. * @ORM\ManyToOne(targetEntity="Lc\ShopBundle\Context\OrderShopInterface", inversedBy="orderStatusHistories")
  11. * @ORM\JoinColumn(nullable=false)
  12. */
  13. protected $orderShop;
  14. /**
  15. * @ORM\Column(type="string", length=31)
  16. */
  17. protected $orderStatus;
  18. /**
  19. * @ORM\Column(type="string", length=31)
  20. */
  21. protected $origin;
  22. public function getOrderShop(): ?OrderShop
  23. {
  24. return $this->orderShop;
  25. }
  26. public function setOrderShop(?OrderShop $orderShop): self
  27. {
  28. $this->orderShop = $orderShop;
  29. return $this;
  30. }
  31. public function getOrderStatus(): ?string
  32. {
  33. return $this->orderStatus;
  34. }
  35. public function setOrderStatus(string $orderStatus): self
  36. {
  37. $this->orderStatus = $orderStatus;
  38. return $this;
  39. }
  40. public function getOrigin(): ?string
  41. {
  42. return $this->origin;
  43. }
  44. public function setOrigin(string $origin): self
  45. {
  46. $this->origin = $origin;
  47. return $this;
  48. }
  49. }