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.

65 lines
1.5KB

  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\ManyToOne(targetEntity="Lc\ShopBundle\Context\OrderStatusInterface")
  16. * @ORM\JoinColumn(nullable=false)
  17. */
  18. protected $orderStatus;
  19. /**
  20. * @ORM\Column(type="string", length=31)
  21. */
  22. protected $origin;
  23. public function getOrderShop(): ?OrderShop
  24. {
  25. return $this->orderShop;
  26. }
  27. public function setOrderShop(?OrderShop $orderShop): self
  28. {
  29. $this->orderShop = $orderShop;
  30. return $this;
  31. }
  32. public function getOrderStatus(): ?OrderStatus
  33. {
  34. return $this->orderStatus;
  35. }
  36. public function setOrderStatus(?OrderStatus $orderStatus): self
  37. {
  38. $this->orderStatus = $orderStatus;
  39. return $this;
  40. }
  41. public function getOrigin(): ?string
  42. {
  43. return $this->origin;
  44. }
  45. public function setOrigin(string $origin): self
  46. {
  47. $this->origin = $origin;
  48. return $this;
  49. }
  50. }