src/Entity/GuardianRegister/GuardianRegister.php line 23

Open in your IDE?
  1. <?php
  2. namespace App\Entity\GuardianRegister;
  3. use App\Entity\Admin;
  4. use App\Entity\EarlyPayment;
  5. use App\Entity\Guardian;
  6. use App\Entity\GuardianContract;
  7. use App\Entity\MontonioLog;
  8. use App\Repository\GuardianRegister\GuardianRegisterRepository;
  9. use Doctrine\Common\Collections\ArrayCollection;
  10. use Doctrine\Common\Collections\Collection;
  11. use Doctrine\ORM\Mapping as ORM;
  12. use Symfony\Component\Serializer\Annotation\Groups;
  13. /**
  14. * @ORM\Entity(repositoryClass=GuardianRegisterRepository::class)
  15. * @ORM\Table(name="guardian_register", indexes={
  16. * @ORM\Index(name="gr_sales_person_idx", columns={"sales_person_id"}),
  17. * @ORM\Index(name="gr_guardian_idx", columns={"guardian_id"})
  18. * })
  19. */
  20. class GuardianRegister
  21. {
  22. const STATUS_NEW = [
  23. 'value' => "NEW",
  24. 'text' => 'Naujas',
  25. 'color' => '#f8d7da'
  26. ];
  27. const STATUS_IGNORED = [
  28. 'value' => "IGNORED",
  29. 'text' => 'Nepakėlė',
  30. 'color' => '#fff3cd'
  31. ];
  32. const STATUS_SENT = [
  33. 'value' => "SENT",
  34. 'text' => 'Išsiųsta',
  35. 'color' => '#d4edda'
  36. ];
  37. const STATUS_SLEEP = [
  38. 'value' => "SLEEP",
  39. 'text' => 'Sleep',
  40. 'color' => '#FF0000'
  41. ];
  42. const STATUS_DECLINED = [
  43. 'value' => "DECLINED",
  44. 'text' => 'Atmesta',
  45. 'color' => '#ffa600'
  46. ];
  47. const STATUS_CONFIRMED = [
  48. 'value' => "CONFIRMED",
  49. 'text' => 'Patvirtinta',
  50. 'color' => '#ffa600'
  51. ];
  52. const STATUS_LOST = [
  53. 'value' => "LOST",
  54. 'text' => 'Lost',
  55. 'color' => '#45C6F6'
  56. ];
  57. const STATUS_UNTARGETED = [
  58. 'value' => "UNTARGETED",
  59. 'text' => 'Netikslinė',
  60. 'color' => '#c75b5b'
  61. ];
  62. //Laukiama - kai uždedame varnele, jog mokėjimas į priekį ir klientas gauna laišką. Max šitą statusą turi 48 val. Jeigu neapmoka.
  63. //Lost 48 - klientas laiške paspaudė, kad jo nedomina.
  64. //Apmokėta pirma - tokį statusą rodome, kai apmokėta pirma pamoka, klientas jau atsiranda ir Tėvai/Klientai, bet dar vis lieka ir tabe Registracijos, jos SALES galėtų matyti ir apmokės ir toliau po pirmos pamokos.
  65. //Nesumokėta 48 - klientų statusas, kurie neapmokėjo už pirmą pamoką per 48 val.
  66. //Neapmokėta - klientai po 24 val. Po pirmos pamokos gauna laiška, kuriame yra visa arba dalinė mėnesio užsiėmimų saskaita. Jeigu po to laiško gavimo klientas neapmoką per 48 val. Užsideda šitas statusas.
  67. const STATUS_WAITING = [
  68. 'value' => "WAITING",
  69. 'text' => 'Laukiama',
  70. 'color' => '#d4edda'
  71. ];
  72. const STATUS_LOST_48 = [
  73. 'value' => "LOST_48",
  74. 'text' => 'Lost 48',
  75. 'color' => '#45C6F6'
  76. ];
  77. const STATUS_PAID_FIRST = [
  78. 'value' => "PAID_FIRST",
  79. 'text' => 'Apmokėta pirma',
  80. 'color' => '#28a745'
  81. ];
  82. const STATUS_NOT_PAID = [
  83. 'value' => "NOT_PAID",
  84. 'text' => 'Neapmokėta',
  85. 'color' => '#f8d7da'
  86. ];
  87. const STATUS_NOT_PAID_48 = [
  88. 'value' => "NOTPAID_48",
  89. 'text' => 'Nesumokėta 48',
  90. 'color' => '#FF0000'
  91. ];
  92. const STATUS_LEFT_EARLY_PAYMENT = [
  93. 'value' => "LEFT_EARLY_PAYMENT",
  94. 'text' => 'Išėjęs mok. į priekį',
  95. 'color' => '#FF0000'
  96. ];
  97. const GUARDIAN_REGISTER_STATUSES = [
  98. self::STATUS_NEW,
  99. self::STATUS_IGNORED,
  100. self::STATUS_SENT,
  101. self::STATUS_SLEEP,
  102. self::STATUS_DECLINED,
  103. self::STATUS_CONFIRMED,
  104. self::STATUS_LOST,
  105. self::STATUS_UNTARGETED,
  106. self::STATUS_WAITING,
  107. self::STATUS_LOST_48,
  108. self::STATUS_PAID_FIRST,
  109. self::STATUS_NOT_PAID,
  110. self::STATUS_NOT_PAID_48,
  111. self::STATUS_LEFT_EARLY_PAYMENT,
  112. ];
  113. /**
  114. * @ORM\Id
  115. * @ORM\GeneratedValue
  116. * @ORM\Column(type="integer")
  117. * @Groups({"GuardianRegisterList"})
  118. */
  119. private $id;
  120. /**
  121. * @ORM\Column(type="boolean", nullable=true)
  122. * @Groups({"GuardianRegisterList"})
  123. */
  124. private $isGuardian = true;
  125. /**
  126. * @ORM\Column(type="string", length=255, nullable=true)
  127. * @Groups({"GuardianRegisterList"})
  128. */
  129. private $email = 'nesuvestasemailas@gmail.com';
  130. /**
  131. * @ORM\Column(type="string", length=255, nullable=true)
  132. * @Groups({"GuardianRegisterList"})
  133. */
  134. private $name;
  135. /**
  136. * @ORM\Column(type="string", length=255, nullable=true)
  137. * @Groups({"GuardianRegisterList"})
  138. */
  139. private $lastname;
  140. /**
  141. * @ORM\Column(type="string", length=255, nullable=true)
  142. * @Groups({"GuardianRegisterList"})
  143. */
  144. private $phone = '8888888888';
  145. /**
  146. * @ORM\Column(type="string", length=255, nullable=true)
  147. * @Groups({"GuardianRegisterList"})
  148. */
  149. private $guardianName;
  150. /**
  151. * @ORM\Column(type="string", length=255, nullable=true)
  152. * @Groups({"GuardianRegisterList"})
  153. */
  154. private $guardianLastname;
  155. /**
  156. * @ORM\Column(type="string", length=255, nullable=true)
  157. * @Groups({"GuardianRegisterList"})
  158. */
  159. private $guardianPhone;
  160. /**
  161. * @ORM\Column(type="string", length=255, nullable=true)
  162. * @Groups({"GuardianRegisterList"})
  163. */
  164. private $guardianEmail;
  165. /**
  166. * @ORM\Column(type="datetime", nullable=true)
  167. * @Groups({"GuardianRegisterList"})
  168. */
  169. private $createdAt;
  170. /**
  171. * @ORM\Column(type="string", length=255, nullable=true)
  172. * @Groups({"GuardianRegisterList"})
  173. */
  174. private $status = self::STATUS_NEW['value'];
  175. /**
  176. * @ORM\ManyToOne(targetEntity=Admin::class, inversedBy="guardianRegisters")
  177. * @Groups({"GuardianRegisterList", "ChildPreferenceAssignmentList","GuardianList"})
  178. */
  179. private $salesPerson;
  180. /**
  181. * @ORM\Column(type="integer", nullable=true)
  182. */
  183. private $ignoredEmailCount = 0;
  184. /**
  185. * @ORM\Column(type="boolean", nullable=true)
  186. * @Groups({"GuardianRegisterList"})
  187. */
  188. private $sign = true;
  189. /**
  190. * @ORM\Column(type="string", length=255, nullable=true)
  191. */
  192. private $contractToken;
  193. /**
  194. * @ORM\Column(type="string", length=255, nullable=true)
  195. */
  196. private $cancelToken;
  197. /**
  198. * @ORM\Column(type="datetime", nullable=true)
  199. * @Groups({"GuardianRegisterList"})
  200. */
  201. private $contractGeneratedAt;
  202. /**
  203. * @ORM\Column(type="text", nullable=true)
  204. */
  205. private $marksignUrl;
  206. /**
  207. * @ORM\Column(type="text", nullable=true)
  208. */
  209. private $marksignDocumentId;
  210. /**
  211. * @ORM\Column(type="integer", nullable=true)
  212. */
  213. private $contractEmailCount = 0;
  214. /**
  215. * @ORM\OneToMany(targetEntity=GuardianRegisterChild::class, mappedBy="guardianRegister")
  216. */
  217. private $guardianRegisterChildren;
  218. /**
  219. * @ORM\Column(type="text", nullable=true)
  220. */
  221. private $signedContractUrl;
  222. /**
  223. * @ORM\OneToOne(targetEntity=Guardian::class, inversedBy="guardianRegister", cascade={"persist", "remove"})
  224. * @Groups({"GuardianRegisterList"})
  225. */
  226. private $guardian;
  227. /**
  228. * @ORM\Column(type="float", nullable=true)
  229. */
  230. private $priceChange;
  231. /**
  232. * @ORM\ManyToOne(targetEntity=GuardianContract::class, inversedBy="guardianRegisters")
  233. */
  234. private $guardianContract;
  235. /**
  236. * @ORM\Column(type="string", length=255, nullable=true)
  237. */
  238. private $currentGuardianFoundBy;
  239. /**
  240. * @ORM\Column(type="datetime", nullable=true)
  241. */
  242. private $salesAssignedAt;
  243. /**
  244. * @ORM\Column(type="datetime", nullable=true)
  245. */
  246. private $contractSentAt;
  247. /**
  248. * @ORM\Column(type="datetime", nullable=true)
  249. */
  250. private $contractSignedAt;
  251. /**
  252. * @ORM\Column(type="text", nullable=true)
  253. * @Groups({"GuardianRegisterList"})
  254. */
  255. private $comment;
  256. /**
  257. * @ORM\Column(type="datetime", nullable=true)
  258. * @Groups({"GuardianRegisterList"})
  259. */
  260. private $recallAt;
  261. /**
  262. * @ORM\Column(type="datetime", nullable=true)
  263. */
  264. private $lostAt;
  265. /**
  266. * @ORM\Column(type="datetime", nullable=true)
  267. */
  268. private $ignoredAt;
  269. /**
  270. * @ORM\Column(type="boolean", nullable=true,options={"default" : "0"})
  271. */
  272. private $isDeleted = false;
  273. /**
  274. * @ORM\Column(type="boolean", nullable=true)
  275. */
  276. private $flagTrial;
  277. /**
  278. * @ORM\Column(type="integer", nullable=true)
  279. */
  280. private $guardianPriceDiscount;
  281. /**
  282. * @ORM\Column(type="string", length=255, nullable=true)
  283. * @Groups({"GuardianRegisterList", "ChildPreferenceAssignmentList"})
  284. */
  285. private $referralCode;
  286. /**
  287. * @ORM\Column(type="boolean", nullable=true)
  288. */
  289. private $referralBonusUsed;
  290. /**
  291. * @ORM\Column(type="string", length=255, nullable=true)
  292. */
  293. private $googleSessionId;
  294. /**
  295. * @ORM\Column(type="string", length=255, nullable=true)
  296. */
  297. private $googleClientId;
  298. /**
  299. * @ORM\Column(type="string", length=255, nullable=true)
  300. */
  301. private $ad;
  302. /**
  303. * @ORM\Column(type="string", length=255, nullable=true)
  304. */
  305. private $referer;
  306. /**
  307. * @ORM\Column(type="string", length=255, nullable=true)
  308. */
  309. private $refererCategory;
  310. /**
  311. * @ORM\Column(type="string", length=255, nullable=true)
  312. */
  313. private $utmSource;
  314. /**
  315. * @ORM\Column(type="string", length=255, nullable=true)
  316. */
  317. private $utmMedium;
  318. /**
  319. * @ORM\Column(type="string", length=255, nullable=true)
  320. */
  321. private $utmCampaign;
  322. /**
  323. * @ORM\Column(type="text", nullable=true)
  324. */
  325. private $landingPage;
  326. /**
  327. * @ORM\Column(type="boolean", nullable=true)
  328. */
  329. private $flagManualAssignment;
  330. /**
  331. * @ORM\Column(type="boolean", nullable=true)
  332. */
  333. private $flagEarlyPayment;
  334. /**
  335. * @ORM\Column(type="integer", nullable=true)
  336. */
  337. private $earlyPaymentDay;
  338. /**
  339. * @ORM\Column(type="string", length=255, nullable=true)
  340. */
  341. private $earlyPaymentToken;
  342. /**
  343. * @ORM\Column(type="datetime", nullable=true)
  344. */
  345. private $earlyPaymentTokenValidTo;
  346. /**
  347. * @ORM\OneToMany(targetEntity=EarlyPayment::class, mappedBy="guardianRegister")
  348. */
  349. private $earlyPayments;
  350. /**
  351. * @ORM\OneToMany(targetEntity=MontonioLog::class, mappedBy="guardianRegister")
  352. */
  353. private $montonioLogs;
  354. /**
  355. * @ORM\Column(type="datetime", nullable=true)
  356. */
  357. private $earlyPaymentSentAt;
  358. /**
  359. * @ORM\Column(type="json", nullable=true)
  360. */
  361. private $data;
  362. public function __construct()
  363. {
  364. $this->createdAt = new \DateTime();
  365. $this->guardianRegisterChildren = new ArrayCollection();
  366. $this->earlyPayments = new ArrayCollection();
  367. $this->montonioLogs = new ArrayCollection();
  368. }
  369. public function getId(): ?int
  370. {
  371. return $this->id;
  372. }
  373. public function getIsGuardian(): ?bool
  374. {
  375. return $this->isGuardian;
  376. }
  377. public function setIsGuardian(?bool $isGuardian): self
  378. {
  379. $this->isGuardian = $isGuardian;
  380. return $this;
  381. }
  382. public function getEmail(): ?string
  383. {
  384. return $this->email;
  385. }
  386. public function setEmail(?string $email): self
  387. {
  388. $this->email = $email;
  389. return $this;
  390. }
  391. public function getName(): ?string
  392. {
  393. return $this->name;
  394. }
  395. public function setName(?string $name): self
  396. {
  397. $this->name = $name;
  398. return $this;
  399. }
  400. public function getLastname(): ?string
  401. {
  402. return $this->lastname;
  403. }
  404. public function setLastname(?string $lastname): self
  405. {
  406. $this->lastname = $lastname;
  407. return $this;
  408. }
  409. public function getPhone(): ?string
  410. {
  411. return $this->phone;
  412. }
  413. public function setPhone(?string $phone): self
  414. {
  415. $phone = str_replace(' ', '', $phone);
  416. $this->phone = $phone;
  417. return $this;
  418. }
  419. public function getGuardianName(): ?string
  420. {
  421. return $this->guardianName;
  422. }
  423. public function setGuardianName(?string $guardianName): self
  424. {
  425. $this->guardianName = $guardianName;
  426. return $this;
  427. }
  428. public function getGuardianLastname(): ?string
  429. {
  430. return $this->guardianLastname;
  431. }
  432. public function setGuardianLastname(?string $guardianLastname): self
  433. {
  434. $this->guardianLastname = $guardianLastname;
  435. return $this;
  436. }
  437. public function getGuardianPhone(): ?string
  438. {
  439. return $this->guardianPhone;
  440. }
  441. public function setGuardianPhone(?string $guardianPhone): self
  442. {
  443. $guardianPhone = str_replace(' ', '', $guardianPhone);
  444. $this->guardianPhone = $guardianPhone;
  445. return $this;
  446. }
  447. public function getGuardianEmail(): ?string
  448. {
  449. return $this->guardianEmail;
  450. }
  451. public function setGuardianEmail(?string $guardianEmail): self
  452. {
  453. $this->guardianEmail = $guardianEmail;
  454. return $this;
  455. }
  456. public function getCreatedAt(): ?\DateTimeInterface
  457. {
  458. return $this->createdAt;
  459. }
  460. public function setCreatedAt(?\DateTimeInterface $createdAt): self
  461. {
  462. $this->createdAt = $createdAt;
  463. return $this;
  464. }
  465. public function getStatus(): ?string
  466. {
  467. return $this->status;
  468. }
  469. public function setStatus(?string $status): self
  470. {
  471. $this->status = $status;
  472. return $this;
  473. }
  474. public function getSalesPerson(): ?Admin
  475. {
  476. return $this->salesPerson;
  477. }
  478. public function setSalesPerson(?Admin $salesPerson): self
  479. {
  480. $this->salesPerson = $salesPerson;
  481. return $this;
  482. }
  483. public function getIgnoredEmailCount(): ?int
  484. {
  485. return $this->ignoredEmailCount;
  486. }
  487. public function setIgnoredEmailCount(?int $ignoredEmailCount): self
  488. {
  489. $this->ignoredEmailCount = $ignoredEmailCount;
  490. return $this;
  491. }
  492. public function getSign(): ?bool
  493. {
  494. return $this->sign;
  495. }
  496. public function setSign(?bool $sign): self
  497. {
  498. $this->sign = $sign;
  499. return $this;
  500. }
  501. public function getContractToken(): ?string
  502. {
  503. return $this->contractToken;
  504. }
  505. public function setContractToken(?string $contract_token): self
  506. {
  507. $this->contractToken = $contract_token;
  508. return $this;
  509. }
  510. public function getCancelToken(): ?string
  511. {
  512. return $this->cancelToken;
  513. }
  514. public function setCancelToken(?string $cancel_token): self
  515. {
  516. $this->cancelToken = $cancel_token;
  517. return $this;
  518. }
  519. public function getContractGeneratedAt(): ?\DateTimeInterface
  520. {
  521. return $this->contractGeneratedAt;
  522. }
  523. public function setContractGeneratedAt(?\DateTimeInterface $contractGeneratedAt): self
  524. {
  525. $this->contractGeneratedAt = $contractGeneratedAt;
  526. return $this;
  527. }
  528. public function getMarksignUrl(): ?string
  529. {
  530. return $this->marksignUrl;
  531. }
  532. public function setMarksignUrl(?string $marksignUrl): self
  533. {
  534. $this->marksignUrl = $marksignUrl;
  535. return $this;
  536. }
  537. public function getMarksignDocumentId(): ?string
  538. {
  539. return $this->marksignDocumentId;
  540. }
  541. public function setMarksignDocumentId(?string $marksignDocumentId): self
  542. {
  543. $this->marksignDocumentId = $marksignDocumentId;
  544. return $this;
  545. }
  546. public function getContractEmailCount(): ?int
  547. {
  548. return $this->contractEmailCount;
  549. }
  550. public function setContractEmailCount(?int $contractEmailCount): self
  551. {
  552. $this->contractEmailCount = $contractEmailCount;
  553. return $this;
  554. }
  555. /**
  556. * @return Collection<int, GuardianRegisterChild>
  557. */
  558. public function getGuardianRegisterChildren(): Collection
  559. {
  560. return $this->guardianRegisterChildren;
  561. }
  562. public function addGuardianRegisterChild(GuardianRegisterChild $guardianRegisterChild): self
  563. {
  564. if (!$this->guardianRegisterChildren->contains($guardianRegisterChild)) {
  565. $this->guardianRegisterChildren[] = $guardianRegisterChild;
  566. $guardianRegisterChild->setGuardianRegister($this);
  567. }
  568. return $this;
  569. }
  570. public function removeGuardianRegisterChild(GuardianRegisterChild $guardianRegisterChild): self
  571. {
  572. if ($this->guardianRegisterChildren->removeElement($guardianRegisterChild)) {
  573. // set the owning side to null (unless already changed)
  574. if ($guardianRegisterChild->getGuardianRegister() === $this) {
  575. $guardianRegisterChild->setGuardianRegister(null);
  576. }
  577. }
  578. return $this;
  579. }
  580. public function getSignedContractUrl(): ?string
  581. {
  582. return $this->signedContractUrl;
  583. }
  584. public function setSignedContractUrl(?string $signedContractUrl): self
  585. {
  586. $this->signedContractUrl = $signedContractUrl;
  587. return $this;
  588. }
  589. public function getGuardian(): ?Guardian
  590. {
  591. return $this->guardian;
  592. }
  593. public function setGuardian(?Guardian $guardian): self
  594. {
  595. $this->guardian = $guardian;
  596. return $this;
  597. }
  598. public function getPriceChange(): ?float
  599. {
  600. return $this->priceChange;
  601. }
  602. public function setPriceChange(?float $priceChange): self
  603. {
  604. $this->priceChange = $priceChange;
  605. return $this;
  606. }
  607. public function getGuardianContract(): ?GuardianContract
  608. {
  609. return $this->guardianContract;
  610. }
  611. public function setGuardianContract(?GuardianContract $guardianContract): self
  612. {
  613. $this->guardianContract = $guardianContract;
  614. return $this;
  615. }
  616. public function getCurrentGuardianFoundBy(): ?string
  617. {
  618. return $this->currentGuardianFoundBy;
  619. }
  620. public function setCurrentGuardianFoundBy(?string $currentGuardianFoundBy): self
  621. {
  622. $this->currentGuardianFoundBy = $currentGuardianFoundBy;
  623. return $this;
  624. }
  625. public function getSalesAssignedAt(): ?\DateTimeInterface
  626. {
  627. return $this->salesAssignedAt;
  628. }
  629. public function setSalesAssignedAt(?\DateTimeInterface $salesAssignedAt): self
  630. {
  631. $this->salesAssignedAt = $salesAssignedAt;
  632. return $this;
  633. }
  634. public function getContractSentAt(): ?\DateTimeInterface
  635. {
  636. return $this->contractSentAt;
  637. }
  638. public function setContractSentAt(?\DateTimeInterface $contractSentAt): self
  639. {
  640. $this->contractSentAt = $contractSentAt;
  641. return $this;
  642. }
  643. public function getContractSignedAt(): ?\DateTimeInterface
  644. {
  645. return $this->contractSignedAt;
  646. }
  647. public function setContractSignedAt(?\DateTimeInterface $contractSignedAt): self
  648. {
  649. $this->contractSignedAt = $contractSignedAt;
  650. return $this;
  651. }
  652. public function getComment(): ?string
  653. {
  654. return $this->comment;
  655. }
  656. public function setComment(?string $comment): self
  657. {
  658. $this->comment = $comment;
  659. return $this;
  660. }
  661. public function getRecallAt(): ?\DateTimeInterface
  662. {
  663. return $this->recallAt;
  664. }
  665. public function setRecallAt(?\DateTimeInterface $recallAt): self
  666. {
  667. $this->recallAt = $recallAt;
  668. return $this;
  669. }
  670. public function getLostAt(): ?\DateTimeInterface
  671. {
  672. return $this->lostAt;
  673. }
  674. public function setLostAt(?\DateTimeInterface $lostAt): self
  675. {
  676. $this->lostAt = $lostAt;
  677. return $this;
  678. }
  679. public function getIgnoredAt(): ?\DateTimeInterface
  680. {
  681. return $this->ignoredAt;
  682. }
  683. public function setIgnoredAt(?\DateTimeInterface $ignoredAt): self
  684. {
  685. $this->ignoredAt = $ignoredAt;
  686. return $this;
  687. }
  688. public function getIsDeleted(): ?bool
  689. {
  690. return $this->isDeleted;
  691. }
  692. public function setIsDeleted(?bool $isDeleted): self
  693. {
  694. $this->isDeleted = $isDeleted;
  695. return $this;
  696. }
  697. public function getFlagTrial(): ?bool
  698. {
  699. return $this->flagTrial;
  700. }
  701. public function setFlagTrial(?bool $flagTrial): self
  702. {
  703. $this->flagTrial = $flagTrial;
  704. return $this;
  705. }
  706. public function getGuardianPriceDiscount(): ?int
  707. {
  708. return $this->guardianPriceDiscount;
  709. }
  710. public function setGuardianPriceDiscount(?int $guardianPriceDiscount): self
  711. {
  712. $this->guardianPriceDiscount = $guardianPriceDiscount;
  713. return $this;
  714. }
  715. public function getReferralCode(): ?string
  716. {
  717. return $this->referralCode;
  718. }
  719. public function setReferralCode(?string $referralCode): self
  720. {
  721. $this->referralCode = $referralCode;
  722. return $this;
  723. }
  724. public function isReferralBonusUsed(): ?bool
  725. {
  726. return $this->referralBonusUsed;
  727. }
  728. public function setReferralBonusUsed(?bool $referralBonusUsed): self
  729. {
  730. $this->referralBonusUsed = $referralBonusUsed;
  731. return $this;
  732. }
  733. public function getGoogleSessionId(): ?string
  734. {
  735. return $this->googleSessionId;
  736. }
  737. public function setGoogleSessionId(?string $googleSessionId): self
  738. {
  739. $this->googleSessionId = $googleSessionId;
  740. return $this;
  741. }
  742. public function getGoogleClientId(): ?string
  743. {
  744. return $this->googleClientId;
  745. }
  746. public function setGoogleClientId(?string $googleClientId): self
  747. {
  748. $this->googleClientId = $googleClientId;
  749. return $this;
  750. }
  751. public function getAd(): ?string
  752. {
  753. return $this->ad;
  754. }
  755. public function setAd(?string $ad): self
  756. {
  757. $this->ad = $ad;
  758. return $this;
  759. }
  760. public function getReferer(): ?string
  761. {
  762. return $this->referer;
  763. }
  764. public function setReferer(?string $referer): self
  765. {
  766. $this->referer = $referer;
  767. return $this;
  768. }
  769. public function getRefererCategory(): ?string
  770. {
  771. return $this->refererCategory;
  772. }
  773. public function setRefererCategory(?string $refererCategory): self
  774. {
  775. $this->refererCategory = $refererCategory;
  776. return $this;
  777. }
  778. public function getUtmSource(): ?string
  779. {
  780. return $this->utmSource;
  781. }
  782. public function setUtmSource(?string $utmSource): self
  783. {
  784. $this->utmSource = $utmSource;
  785. return $this;
  786. }
  787. public function getUtmMedium(): ?string
  788. {
  789. return $this->utmMedium;
  790. }
  791. public function setUtmMedium(?string $utmMedium): self
  792. {
  793. $this->utmMedium = $utmMedium;
  794. return $this;
  795. }
  796. public function getUtmCampaign(): ?string
  797. {
  798. return $this->utmCampaign;
  799. }
  800. public function setUtmCampaign(?string $utmCampaign): self
  801. {
  802. $this->utmCampaign = $utmCampaign;
  803. return $this;
  804. }
  805. public function getLandingPage(): ?string
  806. {
  807. return $this->landingPage;
  808. }
  809. public function setLandingPage(?string $landingPage): self
  810. {
  811. $this->landingPage = $landingPage;
  812. return $this;
  813. }
  814. public function isFlagManualAssignment(): ?bool
  815. {
  816. return $this->flagManualAssignment;
  817. }
  818. public function setFlagManualAssignment(?bool $flagManualAssignment): self
  819. {
  820. $this->flagManualAssignment = $flagManualAssignment;
  821. return $this;
  822. }
  823. public function isFlagEarlyPayment(): ?bool
  824. {
  825. return $this->flagEarlyPayment;
  826. }
  827. public function setFlagEarlyPayment(?bool $flagEarlyPayment): self
  828. {
  829. $this->flagEarlyPayment = $flagEarlyPayment;
  830. return $this;
  831. }
  832. public function getEarlyPaymentDay(): ?int
  833. {
  834. return $this->earlyPaymentDay;
  835. }
  836. public function setEarlyPaymentDay(?int $earlyPaymentDay): self
  837. {
  838. $this->earlyPaymentDay = $earlyPaymentDay;
  839. return $this;
  840. }
  841. public function getEarlyPaymentToken(): ?string
  842. {
  843. return $this->earlyPaymentToken;
  844. }
  845. public function setEarlyPaymentToken(?string $earlyPaymentToken): self
  846. {
  847. $this->earlyPaymentToken = $earlyPaymentToken;
  848. return $this;
  849. }
  850. public function getEarlyPaymentTokenValidTo(): ?\DateTimeInterface
  851. {
  852. return $this->earlyPaymentTokenValidTo;
  853. }
  854. public function setEarlyPaymentTokenValidTo(?\DateTimeInterface $earlyPaymentTokenValidTo): self
  855. {
  856. $this->earlyPaymentTokenValidTo = $earlyPaymentTokenValidTo;
  857. return $this;
  858. }
  859. /**
  860. * @return Collection<int, EarlyPayment>
  861. */
  862. public function getEarlyPayments(): Collection
  863. {
  864. return $this->earlyPayments;
  865. }
  866. public function addEarlyPayment(EarlyPayment $earlyPayment): self
  867. {
  868. if (!$this->earlyPayments->contains($earlyPayment)) {
  869. $this->earlyPayments[] = $earlyPayment;
  870. $earlyPayment->setGuardianRegister($this);
  871. }
  872. return $this;
  873. }
  874. public function removeEarlyPayment(EarlyPayment $earlyPayment): self
  875. {
  876. if ($this->earlyPayments->removeElement($earlyPayment)) {
  877. // set the owning side to null (unless already changed)
  878. if ($earlyPayment->getGuardianRegister() === $this) {
  879. $earlyPayment->setGuardianRegister(null);
  880. }
  881. }
  882. return $this;
  883. }
  884. /**
  885. * @return Collection<int, MontonioLog>
  886. */
  887. public function getMontonioLogs(): Collection
  888. {
  889. return $this->montonioLogs;
  890. }
  891. public function addMontonioLog(MontonioLog $montonioLog): self
  892. {
  893. if (!$this->montonioLogs->contains($montonioLog)) {
  894. $this->montonioLogs[] = $montonioLog;
  895. $montonioLog->setGuardianRegister($this);
  896. }
  897. return $this;
  898. }
  899. public function removeMontonioLog(MontonioLog $montonioLog): self
  900. {
  901. if ($this->montonioLogs->removeElement($montonioLog)) {
  902. // set the owning side to null (unless already changed)
  903. if ($montonioLog->getGuardianRegister() === $this) {
  904. $montonioLog->setGuardianRegister(null);
  905. }
  906. }
  907. return $this;
  908. }
  909. public function getEarlyPaymentSentAt(): ?\DateTimeInterface
  910. {
  911. return $this->earlyPaymentSentAt;
  912. }
  913. public function setEarlyPaymentSentAt(?\DateTimeInterface $earlyPaymentSentAt): self
  914. {
  915. $this->earlyPaymentSentAt = $earlyPaymentSentAt;
  916. return $this;
  917. }
  918. public function getData(): ?array
  919. {
  920. return $this->data;
  921. }
  922. public function setData(?array $data): self
  923. {
  924. $this->data = $data;
  925. return $this;
  926. }
  927. }