src/Entity/System/TapfiliateCustomer.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity\System;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. * TapfiliateCustomer
  6. *
  7. * @ORM\Table(name="ps_tapfiliate_customer")
  8. *
  9. * @ORM\Entity(repositoryClass="App\Repository\System\TapfiliateCustomerRepository")
  10. */
  11. class TapfiliateCustomer
  12. {
  13. /**
  14. * @var int
  15. *
  16. * @ORM\Column(type="integer")
  17. *
  18. * @ORM\Id
  19. *
  20. * @ORM\GeneratedValue(strategy="AUTO")
  21. */
  22. private $id;
  23. /**
  24. * @var Customer|null
  25. *
  26. * @ORM\OneToOne(targetEntity="App\Entity\System\Customer")
  27. *
  28. * @ORM\JoinColumn(nullable=false, name="customer_id", referencedColumnName="id_customer", nullable=true)
  29. */
  30. private $customer;
  31. /**
  32. * @var string
  33. *
  34. * @ORM\Column(type="string", length=100)
  35. */
  36. private $tapfiliateId;
  37. /**
  38. * @var \DateTime
  39. *
  40. * @ORM\Column(type="datetime")
  41. */
  42. private $dateAdd;
  43. /**
  44. * @var bool
  45. *
  46. * @ORM\Column(type="boolean")
  47. */
  48. private $active;
  49. /**
  50. * @var string
  51. *
  52. * @ORM\Column(type="string", length=100)
  53. */
  54. private $referralCode;
  55. /**
  56. * @var \DateTime
  57. *
  58. * @ORM\Column(type="datetime")
  59. */
  60. private $dateExpiration;
  61. /**
  62. * @return int
  63. */
  64. public function getId(): int
  65. {
  66. return $this->id;
  67. }
  68. /**
  69. * @param int $id
  70. *
  71. * @return TapfiliateCustomer
  72. */
  73. public function setId(int $id): TapfiliateCustomer
  74. {
  75. $this->id = $id;
  76. return $this;
  77. }
  78. /**
  79. * @return Customer|null
  80. */
  81. public function getCustomer(): ?Customer
  82. {
  83. return $this->customer;
  84. }
  85. /**
  86. * @param Customer|null $customer
  87. *
  88. * @return TapfiliateCustomer
  89. */
  90. public function setCustomer(?Customer $customer): TapfiliateCustomer
  91. {
  92. $this->customer = $customer;
  93. return $this;
  94. }
  95. /**
  96. * @return string
  97. */
  98. public function getTapfiliateId(): string
  99. {
  100. return $this->tapfiliateId;
  101. }
  102. /**
  103. * @param string $tapfiliateId
  104. *
  105. * @return TapfiliateCustomer
  106. */
  107. public function setTapfiliateId(string $tapfiliateId): TapfiliateCustomer
  108. {
  109. $this->tapfiliateId = $tapfiliateId;
  110. return $this;
  111. }
  112. /**
  113. * @return \DateTime
  114. */
  115. public function getDateAdd(): \DateTime
  116. {
  117. return $this->dateAdd;
  118. }
  119. /**
  120. * @param \DateTime $dateAdd
  121. *
  122. * @return TapfiliateCustomer
  123. */
  124. public function setDateAdd(\DateTime $dateAdd): TapfiliateCustomer
  125. {
  126. $this->dateAdd = $dateAdd;
  127. return $this;
  128. }
  129. /**
  130. * @return bool
  131. */
  132. public function isActive(): bool
  133. {
  134. return $this->active;
  135. }
  136. /**
  137. * @param bool $active
  138. *
  139. * @return TapfiliateCustomer
  140. */
  141. public function setActive(bool $active): TapfiliateCustomer
  142. {
  143. $this->active = $active;
  144. return $this;
  145. }
  146. /**
  147. * @return string
  148. */
  149. public function getReferralCode(): string
  150. {
  151. return $this->referralCode;
  152. }
  153. /**
  154. * @param string $referralCode
  155. *
  156. * @return TapfiliateCustomer
  157. */
  158. public function setReferralCode(string $referralCode): TapfiliateCustomer
  159. {
  160. $this->referralCode = $referralCode;
  161. return $this;
  162. }
  163. /**
  164. * @return \DateTime
  165. */
  166. public function getDateExpiration(): \DateTime
  167. {
  168. return $this->dateExpiration;
  169. }
  170. /**
  171. * @param \DateTime $dateExpiration
  172. *
  173. * @return TapfiliateCustomer
  174. */
  175. public function setDateExpiration(\DateTime $dateExpiration): TapfiliateCustomer
  176. {
  177. $this->dateExpiration = $dateExpiration;
  178. return $this;
  179. }
  180. }