src/Entity/Report/CustomerData.php line 30

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Entity\Report;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * @ORM\Table(
  7. * name="customer_data",
  8. * indexes={
  9. *
  10. * @ORM\Index(name="idx_customer_data_password", columns={"password"}),
  11. * @ORM\Index(name="idx_customer_data_postcode", columns={"postcode"}),
  12. * @ORM\Index(name="idx_customer_data_iso_vat_number", columns={"iso_vat_number"}),
  13. * @ORM\Index(name="idx_customer_data_vat_number", columns={"vat_number"}),
  14. * @ORM\Index(name="idx_customer_data_stripe_reference", columns={"stripe_reference"}),
  15. * @ORM\Index(name="idx_customer_data_fraudster", columns={"fraudster"}),
  16. * @ORM\Index(name="idx_customer_data_deactivated", columns={"deactivated"})
  17. * },
  18. * uniqueConstraints={
  19. *
  20. * @ORM\UniqueConstraint(name="unique_customer_data_customer_id", columns={"customer_id"})
  21. * }
  22. * )
  23. *
  24. * @ORM\Entity(repositoryClass="App\Repository\Report\CustomerDataRepository")
  25. */
  26. class CustomerData
  27. {
  28. /**
  29. * @ORM\Id
  30. *
  31. * @ORM\GeneratedValue(strategy="AUTO")
  32. *
  33. * @ORM\Column(type="integer")
  34. */
  35. private int $id;
  36. /**
  37. * @ORM\Column(type="integer", name="customer_id", nullable=false)
  38. */
  39. private int $customerId;
  40. /**
  41. * @ORM\Column(type="string", length=100, nullable=true)
  42. */
  43. private ?string $password = null;
  44. /**
  45. * @ORM\Column(type="string", length=12, nullable=true)
  46. */
  47. private ?string $postcode = null;
  48. /**
  49. * @ORM\Column(type="string", length=3, nullable=true, name="iso_vat_number")
  50. */
  51. private ?string $isoVatNumber = null;
  52. /**
  53. * @ORM\Column(type="string", length=32, nullable=true, name="vat_number")
  54. */
  55. private ?string $vatNumber = null;
  56. /**
  57. * @ORM\Column(type="string", length=255, nullable=true, name="stripe_reference")
  58. */
  59. private ?string $stripeReference = null;
  60. /**
  61. * @ORM\Column(type="boolean", options={"default": 0})
  62. */
  63. private bool $fraudster = false;
  64. /**
  65. * @ORM\Column(type="boolean", options={"default": 0})
  66. */
  67. private bool $deactivated = false;
  68. /**
  69. * @ORM\Column(type="datetime", name="date_add")
  70. */
  71. private \DateTime $dateAdd;
  72. /**
  73. * @ORM\Column(type="datetime", name="date_upd", nullable=true)
  74. */
  75. private ?\DateTime $dateUpd = null;
  76. public function __construct()
  77. {
  78. $this->dateAdd = new \DateTime();
  79. }
  80. public function getId(): int
  81. {
  82. return $this->id;
  83. }
  84. public function getCustomerId(): int
  85. {
  86. return $this->customerId;
  87. }
  88. public function setCustomerId(int $customerId): self
  89. {
  90. $this->customerId = $customerId;
  91. return $this;
  92. }
  93. public function getPassword(): ?string
  94. {
  95. return $this->password;
  96. }
  97. public function setPassword(?string $password): self
  98. {
  99. $this->password = $password;
  100. return $this;
  101. }
  102. public function getPostcode(): ?string
  103. {
  104. return $this->postcode;
  105. }
  106. public function setPostcode(?string $postcode): self
  107. {
  108. $this->postcode = $postcode;
  109. return $this;
  110. }
  111. public function getIsoVatNumber(): ?string
  112. {
  113. return $this->isoVatNumber;
  114. }
  115. public function setIsoVatNumber(?string $isoVatNumber): self
  116. {
  117. $this->isoVatNumber = $isoVatNumber;
  118. return $this;
  119. }
  120. public function getVatNumber(): ?string
  121. {
  122. return $this->vatNumber;
  123. }
  124. public function setVatNumber(?string $vatNumber): self
  125. {
  126. $this->vatNumber = $vatNumber;
  127. return $this;
  128. }
  129. public function getStripeReference(): ?string
  130. {
  131. return $this->stripeReference;
  132. }
  133. public function setStripeReference(?string $stripeReference): self
  134. {
  135. $this->stripeReference = $stripeReference;
  136. return $this;
  137. }
  138. public function isFraudster(): bool
  139. {
  140. return $this->fraudster;
  141. }
  142. public function setFraudster(bool $fraudster): self
  143. {
  144. $this->fraudster = $fraudster;
  145. return $this;
  146. }
  147. public function isDeactivated(): bool
  148. {
  149. return $this->deactivated;
  150. }
  151. public function setDeactivated(bool $deactivated): self
  152. {
  153. $this->deactivated = $deactivated;
  154. return $this;
  155. }
  156. public function getDateAdd(): \DateTime
  157. {
  158. return $this->dateAdd;
  159. }
  160. public function getDateUpd(): ?\DateTime
  161. {
  162. return $this->dateUpd;
  163. }
  164. public function setDateUpd(?\DateTime $dateUpd): self
  165. {
  166. $this->dateUpd = $dateUpd;
  167. return $this;
  168. }
  169. }