Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

OrderStatusHistory.php 1.4KB

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