<?phpnamespace App\Domain\Entity;use App\Domain\Interfaces\MetadataInterface;use App\Shared\Domain\ApplicationCore\Interfaces\EntityInterface;use DateTimeInterface;use Doctrine\DBAL\Types\Types;use Symfony\Component\Uid\Uuid;class CustomRegistro implements EntityInterface, MetadataInterface{ private ?Uuid $id = null; private ?string $key = null; private ?string $nombre = null; private ?string $descripcion = null; private $schema = null; private $form = null; private ?string $css = null; private ?string $js = null; private ?string $translations = null; private ?string $translationDomain = null; private ?DateTimeInterface $createdAt = null; private ?DateTimeInterface $updatedAt = null; private ?DateTimeInterface $deletedAt = null; private ?DocumentacionRegistro $documentacionRegistro = null; private ?MetadataCustomRegistro $metadata; public function __construct(?MetadataCustomRegistro $metadata = null) { $this->metadata = $metadata; if($metadata) { $this->setKey($metadata->getKey()); $this->setNombre($metadata->getNombre()); $this->setDescripcion($metadata->getDescripcion()); $this->setSchema($metadata->getSchema()); $this->setJs($metadata->getJs()); $this->setCss($metadata->getCss()); $this->setTranslationDomain($metadata->getTranslationDomain()); $this->setTranslations($metadata->getTranslations()); } } public function getKey(): ?string { return $this->key; } public function setKey(?string $key): static { $this->key = $key; return $this; } public function getNombre(): ?string { return $this->nombre; } public function setNombre(?string $nombre): static { $this->nombre = $nombre; return $this; } public function getDescripcion(): ?string { return $this->descripcion; } public function setDescripcion(?string $descripcion): static { $this->descripcion = $descripcion; return $this; } public function getSchema(): ?string { return $this->schema; } public function setSchema(?string $schema): static { $this->schema = $schema; return $this; } public function getForm(): ?string { return $this->form; } public function setForm(?string $form): static { $this->form = $form; return $this; } public function getCss(): ?string { return $this->css; } public function setCss(?string $css): static { $this->css = $css; return $this; } public function getJs(): ?string { return $this->js; } public function setJs(?string $js): static { $this->js = $js; return $this; } public function getTranslations(): ?string { return $this->translations; } public function setTranslations(?string $translations): static { $this->translations = $translations; return $this; } public function getTranslationDomain(): ?string { return $this->translationDomain; } public function setTranslationDomain(?string $translationDomain): static { $this->translationDomain = $translationDomain; return $this; } public function getCreatedAt(): ?\DateTimeInterface { return $this->createdAt; } public function setCreatedAt(\DateTimeInterface $createdAt): static { $this->createdAt = $createdAt; return $this; } public function getUpdatedAt(): ?\DateTimeInterface { return $this->updatedAt; } public function setUpdatedAt(\DateTimeInterface $updatedAt): static { $this->updatedAt = $updatedAt; return $this; } public function getDeletedAt(): ?\DateTimeInterface { return $this->deletedAt; } public function setDeletedAt(?\DateTimeInterface $deletedAt): static { $this->deletedAt = $deletedAt; return $this; } public function getId(): ?Uuid { return $this->id; } public function getDocumentacionRegistro(): ?DocumentacionRegistro { return $this->documentacionRegistro; } public function setDocumentacionRegistro(?DocumentacionRegistro $documentacionRegistro): static { // unset the owning side of the relation if necessary if ($documentacionRegistro === null && $this->documentacionRegistro !== null) { $this->documentacionRegistro->setCustom(null); } // set the owning side of the relation if necessary if ($documentacionRegistro !== null && $documentacionRegistro->getCustom() !== $this) { $documentacionRegistro->setCustom($this); } $this->documentacionRegistro = $documentacionRegistro; return $this; } public function getMetadata(): ?MetadataCustomRegistro { return $this->metadata; } public function setMetadata(?MetadataInterface $metadataCustomRegistro): static { $this->metadata = $metadataCustomRegistro; return $this; }}