src/Entity/System/CustomerLog.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity\System;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. * Order
  6. *
  7. * @ORM\Table(name="ps_customer_action_log")
  8. *
  9. * @ORM\Entity(repositoryClass="App\Repository\System\CustomerLogRepository")
  10. */
  11. class CustomerLog
  12. {
  13. /**
  14. * @ORM\Id()
  15. *
  16. * @ORM\GeneratedValue()
  17. *
  18. * @ORM\Column(type="integer", name="id_log")
  19. */
  20. private $id;
  21. /**
  22. * @var Customer
  23. *
  24. * @ORM\ManyToOne(targetEntity="App\Entity\System\Customer", inversedBy="customerLog")
  25. *
  26. * @ORM\JoinColumn(referencedColumnName="id_customer", name="id_customer", nullable=false)
  27. */
  28. private $customer;
  29. /**
  30. * @var \DateTime
  31. *
  32. * @ORM\Column(type="datetime")
  33. */
  34. private $dateAdd;
  35. /**
  36. * @var string|null
  37. *
  38. * @ORM\Column(type="string", length=100, nullable=true)
  39. */
  40. private $action;
  41. /**
  42. * @return mixed
  43. */
  44. public function getId()
  45. {
  46. return $this->id;
  47. }
  48. /**
  49. * @param mixed $id
  50. *
  51. * @return CustomerLog
  52. */
  53. public function setId($id): CustomerLog
  54. {
  55. $this->id = $id;
  56. return $this;
  57. }
  58. /**
  59. * @return Customer
  60. */
  61. public function getCustomer(): Customer
  62. {
  63. return $this->customer;
  64. }
  65. /**
  66. * @param Customer $customer
  67. *
  68. * @return CustomerLog
  69. */
  70. public function setCustomer(Customer $customer): CustomerLog
  71. {
  72. $this->customer = $customer;
  73. return $this;
  74. }
  75. /**
  76. * @return \DateTime
  77. */
  78. public function getDateAdd(): \DateTime
  79. {
  80. return $this->dateAdd;
  81. }
  82. /**
  83. * @param \DateTime $dateAdd
  84. *
  85. * @return CustomerLog
  86. */
  87. public function setDateAdd(\DateTime $dateAdd): CustomerLog
  88. {
  89. $this->dateAdd = $dateAdd;
  90. return $this;
  91. }
  92. /**
  93. * @return string|null
  94. */
  95. public function getAction(): ?string
  96. {
  97. return $this->action;
  98. }
  99. /**
  100. * @param string|null $action
  101. *
  102. * @return CustomerLog
  103. */
  104. public function setAction(?string $action): CustomerLog
  105. {
  106. $this->action = $action;
  107. return $this;
  108. }
  109. }