src/Entity/GuardianRegister/GuardianRegister.php line 26

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