src/Entity/System/CustomerRegistrationInfo.php line 18

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\Entity(repositoryClass="App\Repository\System\CustomerRegistrationInfoRepository")
  7. *
  8. * @ORM\Table(name="customer_registration_info",
  9. * uniqueConstraints={
  10. *
  11. * @ORM\UniqueConstraint(name="id_customer", columns={"id_customer", "step"})
  12. * })
  13. */
  14. class CustomerRegistrationInfo
  15. {
  16. /**
  17. * @ORM\Id()
  18. *
  19. * @ORM\GeneratedValue()
  20. *
  21. * @ORM\Column(type="integer", name="id")
  22. */
  23. private $id;
  24. /**
  25. * @var Customer
  26. *
  27. * @ORM\ManyToOne(targetEntity="App\Entity\System\Customer", inversedBy="customerApi")
  28. *
  29. * @ORM\JoinColumn(name="id_customer", referencedColumnName="id_customer", nullable=false)
  30. */
  31. private $customer;
  32. /**
  33. * @var string|null
  34. *
  35. * @ORM\Column(type="string", length=30, nullable=true)
  36. */
  37. private $os;
  38. /**
  39. * @var string|null
  40. *
  41. * @ORM\Column(type="string", length=50, nullable=true)
  42. */
  43. private $country;
  44. /**
  45. * @var string|null
  46. *
  47. * @ORM\Column(type="string", length=50, nullable=true)
  48. */
  49. private $deviceType;
  50. /**
  51. * @var string|null
  52. *
  53. * @ORM\Column(type="string", length=50, nullable=true)
  54. */
  55. private $browser;
  56. /**
  57. * @var string|null
  58. *
  59. * @ORM\Column(type="string", length=50, nullable=true)
  60. */
  61. private $ip;
  62. /**
  63. * @var int|null
  64. *
  65. * @ORM\Column(type="integer", length=4)
  66. */
  67. private $step;
  68. /**
  69. * @var \DateTime
  70. *
  71. * @ORM\Column(type="datetime", options={"default":"CURRENT_TIMESTAMP"}, name="date_add")
  72. */
  73. private $dateAdd;
  74. public function getId()
  75. {
  76. return $this->id;
  77. }
  78. public function setId($id)
  79. {
  80. $this->id = $id;
  81. return $this;
  82. }
  83. public function getCustomer(): Customer
  84. {
  85. return $this->customer;
  86. }
  87. public function setCustomer(Customer $customer): CustomerRegistrationInfo
  88. {
  89. $this->customer = $customer;
  90. return $this;
  91. }
  92. public function getOs(): ?string
  93. {
  94. return $this->os;
  95. }
  96. public function setOs(?string $os): CustomerRegistrationInfo
  97. {
  98. $this->os = $os;
  99. return $this;
  100. }
  101. public function getCountry(): string
  102. {
  103. return $this->country;
  104. }
  105. public function setCountry(string $country): CustomerRegistrationInfo
  106. {
  107. $this->country = $country;
  108. return $this;
  109. }
  110. public function getDeviceType(): ?string
  111. {
  112. return $this->deviceType;
  113. }
  114. public function setDeviceType(?string $deviceType): CustomerRegistrationInfo
  115. {
  116. $this->deviceType = $deviceType;
  117. return $this;
  118. }
  119. public function getBrowser(): ?string
  120. {
  121. return $this->browser;
  122. }
  123. public function setBrowser(?string $browser): CustomerRegistrationInfo
  124. {
  125. $this->browser = $browser;
  126. return $this;
  127. }
  128. public function getIp(): ?string
  129. {
  130. return $this->ip;
  131. }
  132. public function setIp(?string $ip): CustomerRegistrationInfo
  133. {
  134. $this->ip = $ip;
  135. return $this;
  136. }
  137. public function getStep(): ?int
  138. {
  139. return $this->step;
  140. }
  141. public function setStep(?int $step): CustomerRegistrationInfo
  142. {
  143. $this->step = $step;
  144. return $this;
  145. }
  146. public function getDateAdd(): \DateTime
  147. {
  148. return $this->dateAdd;
  149. }
  150. public function setDateAdd(\DateTime $dateAdd): CustomerRegistrationInfo
  151. {
  152. $this->dateAdd = $dateAdd;
  153. return $this;
  154. }
  155. }