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.9KB

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