<?phpnamespace App\Domain\Entity;use App\Domain\Interfaces\MetadataInterface;use App\Shared\Domain\ApplicationCore\Interfaces\EntityInterface;use DateTimeInterface;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\DBAL\Types\Types;use Symfony\Component\Uid\Uuid;class Metadata implements EntityInterface, MetadataInterface{ private ?Uuid $id = null; private ?string $key = null; private ?string $nombre = null; private ?string $descripcion = null; private $schema = 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 Collection $handlers; public function __construct() { $this->handlers = new ArrayCollection(); } public function __toString(): string { return $this->getNombre()??$this->getKey()??''; } 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 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; } /** * @return Collection<int, Handler> */ public function getHandlers(): Collection { return $this->handlers; } public function addHandler(Handler $handler): static { if (!$this->handlers->contains($handler)) { $this->handlers->add($handler); $handler->setMetadata($this); } return $this; } public function removeHandler(Handler $handler): static { if ($this->handlers->removeElement($handler)) { // set the owning side to null (unless already changed) if ($handler->getMetadata() === $this) { $handler->setMetadata(null); } } return $this; } public function getForm(): ?string { return null; } public function setForm(?string $form): static { return $this; } public function getMetadata(): ?self { return null; } public function setMetadata(?MetadataInterface $metadata): static { return $this; }}