add: MemberDocument
Add MemberDocument class and assoc repo
This commit is contained in:
132
src/Entity/MemberDocument.php
Normal file
132
src/Entity/MemberDocument.php
Normal file
@ -0,0 +1,132 @@
|
||||
<?php
|
||||
|
||||
namespace App\Entity;
|
||||
|
||||
use App\Repository\MemberDocumentRepository;
|
||||
use Doctrine\DBAL\Types\Types;
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
use Symfony\Bridge\Doctrine\Types\UuidType;
|
||||
use Symfony\Component\Uid\Uuid;
|
||||
|
||||
#[ORM\Entity(repositoryClass: MemberDocumentRepository::class)]
|
||||
class MemberDocument
|
||||
{
|
||||
#[ORM\Id]
|
||||
#[ORM\Column(type: UuidType::NAME, unique: true)]
|
||||
#[ORM\GeneratedValue(strategy: 'CUSTOM')]
|
||||
#[ORM\CustomIdGenerator(class: 'doctrine.uuid_generator')]
|
||||
private ?Uuid $id = null;
|
||||
|
||||
#[ORM\ManyToOne]
|
||||
#[ORM\JoinColumn(nullable: false)]
|
||||
private ?Member $client = null;
|
||||
|
||||
#[ORM\ManyToOne]
|
||||
#[ORM\JoinColumn(nullable: false)]
|
||||
private ?User $caseWorker = null;
|
||||
|
||||
#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]
|
||||
private ?\DateTimeInterface $clientSigned = null;
|
||||
|
||||
#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]
|
||||
private ?\DateTimeInterface $workerSigned = null;
|
||||
|
||||
#[ORM\ManyToOne]
|
||||
#[ORM\JoinColumn(nullable: false)]
|
||||
private ?CompanyDocument $document = null;
|
||||
|
||||
#[ORM\Column(nullable: true)]
|
||||
private ?array $clientSignature = null;
|
||||
|
||||
#[ORM\Column(nullable: true)]
|
||||
private ?array $workerSignature = null;
|
||||
|
||||
public function getId(): ?Uuid
|
||||
{
|
||||
return $this->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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user