From 224a5cd24388a569028f9dd48e5c8acb611c9932 Mon Sep 17 00:00:00 2001 From: Ryan Prather Date: Tue, 21 Jan 2025 14:25:00 -0500 Subject: [PATCH] add: MemberDocument Add MemberDocument class and assoc repo --- src/Entity/MemberDocument.php | 132 ++++++++++++++++++++ src/Repository/MemberDocumentRepository.php | 45 +++++++ 2 files changed, 177 insertions(+) create mode 100644 src/Entity/MemberDocument.php create mode 100644 src/Repository/MemberDocumentRepository.php diff --git a/src/Entity/MemberDocument.php b/src/Entity/MemberDocument.php new file mode 100644 index 0000000..4141a08 --- /dev/null +++ b/src/Entity/MemberDocument.php @@ -0,0 +1,132 @@ +id; + } + + public function getClient(): ?Member + { + return $this->client; + } + + public function setClient(?Member $client): static + { + $this->client = $client; + + return $this; + } + + public function getCaseWorker(): ?User + { + return $this->caseWorker; + } + + public function setCaseWorker(?User $caseWorker): static + { + $this->caseWorker = $caseWorker; + + return $this; + } + + public function getClientSigned(): ?\DateTimeInterface + { + return $this->clientSigned; + } + + public function setClientSigned(?\DateTimeInterface $clientSigned): static + { + $this->clientSigned = $clientSigned; + + return $this; + } + + public function getWorkerSigned(): ?\DateTimeInterface + { + return $this->workerSigned; + } + + public function setWorkerSigned(?\DateTimeInterface $workerSigned): static + { + $this->workerSigned = $workerSigned; + + return $this; + } + + public function getDocument(): ?CompanyDocument + { + return $this->document; + } + + public function setDocument(?CompanyDocument $document): static + { + $this->document = $document; + + return $this; + } + + public function getClientSignature(): ?array + { + return $this->clientSignature; + } + + public function setClientSignature(?array $clientSignature): static + { + $this->clientSignature = $clientSignature; + + return $this; + } + + public function getWorkerSignature(): ?array + { + return $this->workerSignature; + } + + public function setWorkerSignature(?array $workerSignature): static + { + $this->workerSignature = $workerSignature; + + return $this; + } +} diff --git a/src/Repository/MemberDocumentRepository.php b/src/Repository/MemberDocumentRepository.php new file mode 100644 index 0000000..a9a7b49 --- /dev/null +++ b/src/Repository/MemberDocumentRepository.php @@ -0,0 +1,45 @@ + + */ +class MemberDocumentRepository extends ServiceEntityRepository +{ + public function __construct(ManagerRegistry $registry) + { + parent::__construct($registry, MemberDocument::class); + } + + // /** + // * @return CaseDocument[] Returns an array of CaseDocument objects + // */ + // public function findByExampleField($value): array + // { + // return $this->createQueryBuilder('m') + // ->andWhere('m.exampleField = :val') + // ->setParameter('val', $value) + // ->orderBy('m.id', 'ASC') + // ->setMaxResults(10) + // ->getQuery() + // ->getResult() + // ; + // } + + // public function findOneBySomeField($value): ?CaseDocument + // { + // return $this->createQueryBuilder('m') + // ->andWhere('m.exampleField = :val') + // ->setParameter('val', $value) + // ->getQuery() + // ->getOneOrNullResult() + // ; + // } +}