src/Entity/System/CustomerInformationUpdate.php line 14

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Entity\System;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * @ORM\Table(name="customer_information_update")
  7. *
  8. * @ORM\Entity(repositoryClass="App\Repository\System\CustomerInformationUpdateRepository")
  9. */
  10. class CustomerInformationUpdate
  11. {
  12. public const CUSTOMER_TYPE = 'Customer';
  13. public const ADDRESS_TYPE = 'Address';
  14. public const CATALOG_TYPE = 'Catalog';
  15. public const ROLE_TYPE = 'Role';
  16. public const SERVICE_TYPE = 'Service';
  17. public const SERVICE_PARAMETERS_TYPE = 'ServiceParameters';
  18. public const RMA_TYPE = 'RMA';
  19. public const FREE_ORDER_TYPE = 'FreeOrder';
  20. /**
  21. * @ORM\Id
  22. *
  23. * @ORM\GeneratedValue(strategy="AUTO")
  24. *
  25. * @ORM\Column(type="integer", name="id_log")
  26. */
  27. private int $id;
  28. /**
  29. * @ORM\Column(type="integer", name="id_customer", nullable=false)
  30. */
  31. private int $customerId;
  32. /**
  33. * @ORM\Column(type="datetime", nullable=true)
  34. */
  35. private ?\DateTime $dateAdd;
  36. /**
  37. * @ORM\ManyToOne(targetEntity="Employee")
  38. *
  39. * @ORM\JoinColumn(name="who_change", referencedColumnName="id_employee")
  40. */
  41. private Employee $employee;
  42. /**
  43. * @ORM\Column(type="string", length=100, nullable=true)
  44. */
  45. private ?string $action;
  46. /**
  47. * @ORM\Column(type="string", length=255, nullable=true)
  48. */
  49. private ?string $property;
  50. /**
  51. * @ORM\Column(type="text", nullable=true, name="dataBefore")
  52. */
  53. private ?string $dataBefore;
  54. /**
  55. * @ORM\Column(type="text", nullable=true, name="dataAfter")
  56. */
  57. private ?string $dataAfter;
  58. public function __construct()
  59. {
  60. $this->dateAdd = new \DateTime();
  61. }
  62. public function getId(): int
  63. {
  64. return $this->id;
  65. }
  66. public function getCustomerId(): int
  67. {
  68. return $this->customerId;
  69. }
  70. public function setCustomerId(int $customerId): CustomerInformationUpdate
  71. {
  72. $this->customerId = $customerId;
  73. return $this;
  74. }
  75. public function getDateAdd(): ?\DateTime
  76. {
  77. return $this->dateAdd;
  78. }
  79. public function setDateAdd(?\DateTime $dateAdd): CustomerInformationUpdate
  80. {
  81. $this->dateAdd = $dateAdd;
  82. return $this;
  83. }
  84. public function getEmployee(): Employee
  85. {
  86. return $this->employee;
  87. }
  88. public function setEmployee(Employee $employee): CustomerInformationUpdate
  89. {
  90. $this->employee = $employee;
  91. return $this;
  92. }
  93. public function getAction(): ?string
  94. {
  95. return $this->action;
  96. }
  97. public function setAction(?string $action): CustomerInformationUpdate
  98. {
  99. $this->action = $action;
  100. return $this;
  101. }
  102. public function getDataBefore(): ?string
  103. {
  104. return $this->dataBefore;
  105. }
  106. public function setDataBefore(?string $dataBefore): CustomerInformationUpdate
  107. {
  108. $this->dataBefore = $dataBefore;
  109. return $this;
  110. }
  111. public function getDataAfter(): ?string
  112. {
  113. return $this->dataAfter;
  114. }
  115. public function setDataAfter(?string $dataAfter): CustomerInformationUpdate
  116. {
  117. $this->dataAfter = $dataAfter;
  118. return $this;
  119. }
  120. public function getProperty(): ?string
  121. {
  122. return $this->property;
  123. }
  124. public function setProperty(?string $property): CustomerInformationUpdate
  125. {
  126. $this->property = $property;
  127. return $this;
  128. }
  129. }