src/Domain/Entity/CustomRegistro.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Domain\Entity;
  3. use App\Domain\Interfaces\MetadataInterface;
  4. use App\Shared\Domain\ApplicationCore\Interfaces\EntityInterface;
  5. use DateTimeInterface;
  6. use Doctrine\DBAL\Types\Types;
  7. use Symfony\Component\Uid\Uuid;
  8. class CustomRegistro implements EntityInterfaceMetadataInterface
  9. {
  10.     private ?Uuid $id null;
  11.     private ?string $key null;
  12.     private ?string $nombre null;
  13.     private ?string $descripcion null;
  14.     private $schema null;
  15.     private $form null;
  16.     private ?string $css null;
  17.     private ?string $js null;
  18.     private ?string $translations null;
  19.     private ?string $translationDomain null;
  20.     private ?DateTimeInterface $createdAt null;
  21.     private ?DateTimeInterface $updatedAt null;
  22.     private ?DateTimeInterface $deletedAt null;
  23.     private ?DocumentacionRegistro $documentacionRegistro null;
  24.     private ?MetadataCustomRegistro $metadata;
  25.     public function __construct(?MetadataCustomRegistro $metadata null)
  26.     {
  27.         $this->metadata $metadata;
  28.         if($metadata)
  29.         {
  30.             $this->setKey($metadata->getKey());
  31.             $this->setNombre($metadata->getNombre());
  32.             $this->setDescripcion($metadata->getDescripcion());
  33.             $this->setSchema($metadata->getSchema());
  34.             $this->setJs($metadata->getJs());
  35.             $this->setCss($metadata->getCss());
  36.             $this->setTranslationDomain($metadata->getTranslationDomain());
  37.             $this->setTranslations($metadata->getTranslations());
  38.         }
  39.     }
  40.     public function getKey(): ?string
  41.     {
  42.         return $this->key;
  43.     }
  44.     public function setKey(?string $key): static
  45.     {
  46.         $this->key $key;
  47.         return $this;
  48.     }
  49.     public function getNombre(): ?string
  50.     {
  51.         return $this->nombre;
  52.     }
  53.     public function setNombre(?string $nombre): static
  54.     {
  55.         $this->nombre $nombre;
  56.         return $this;
  57.     }
  58.     public function getDescripcion(): ?string
  59.     {
  60.         return $this->descripcion;
  61.     }
  62.     public function setDescripcion(?string $descripcion): static
  63.     {
  64.         $this->descripcion $descripcion;
  65.         return $this;
  66.     }
  67.     public function getSchema(): ?string
  68.     {
  69.         return $this->schema;
  70.     }
  71.     public function setSchema(?string $schema): static
  72.     {
  73.         $this->schema $schema;
  74.         return $this;
  75.     }
  76.     public function getForm(): ?string
  77.     {
  78.         return $this->form;
  79.     }
  80.     public function setForm(?string $form): static
  81.     {
  82.         $this->form $form;
  83.         return $this;
  84.     }
  85.     public function getCss(): ?string
  86.     {
  87.         return $this->css;
  88.     }
  89.     public function setCss(?string $css): static
  90.     {
  91.         $this->css $css;
  92.         return $this;
  93.     }
  94.     public function getJs(): ?string
  95.     {
  96.         return $this->js;
  97.     }
  98.     public function setJs(?string $js): static
  99.     {
  100.         $this->js $js;
  101.         return $this;
  102.     }
  103.     public function getTranslations(): ?string
  104.     {
  105.         return $this->translations;
  106.     }
  107.     public function setTranslations(?string $translations): static
  108.     {
  109.         $this->translations $translations;
  110.         return $this;
  111.     }
  112.     public function getTranslationDomain(): ?string
  113.     {
  114.         return $this->translationDomain;
  115.     }
  116.     public function setTranslationDomain(?string $translationDomain): static
  117.     {
  118.         $this->translationDomain $translationDomain;
  119.         return $this;
  120.     }
  121.     public function getCreatedAt(): ?\DateTimeInterface
  122.     {
  123.         return $this->createdAt;
  124.     }
  125.     public function setCreatedAt(\DateTimeInterface $createdAt): static
  126.     {
  127.         $this->createdAt $createdAt;
  128.         return $this;
  129.     }
  130.     public function getUpdatedAt(): ?\DateTimeInterface
  131.     {
  132.         return $this->updatedAt;
  133.     }
  134.     public function setUpdatedAt(\DateTimeInterface $updatedAt): static
  135.     {
  136.         $this->updatedAt $updatedAt;
  137.         return $this;
  138.     }
  139.     public function getDeletedAt(): ?\DateTimeInterface
  140.     {
  141.         return $this->deletedAt;
  142.     }
  143.     public function setDeletedAt(?\DateTimeInterface $deletedAt): static
  144.     {
  145.         $this->deletedAt $deletedAt;
  146.         return $this;
  147.     }
  148.     public function getId(): ?Uuid
  149.     {
  150.         return $this->id;
  151.     }
  152.     public function getDocumentacionRegistro(): ?DocumentacionRegistro
  153.     {
  154.         return $this->documentacionRegistro;
  155.     }
  156.     public function setDocumentacionRegistro(?DocumentacionRegistro $documentacionRegistro): static
  157.     {
  158.         // unset the owning side of the relation if necessary
  159.         if ($documentacionRegistro === null && $this->documentacionRegistro !== null) {
  160.             $this->documentacionRegistro->setCustom(null);
  161.         }
  162.         // set the owning side of the relation if necessary
  163.         if ($documentacionRegistro !== null && $documentacionRegistro->getCustom() !== $this) {
  164.             $documentacionRegistro->setCustom($this);
  165.         }
  166.         $this->documentacionRegistro $documentacionRegistro;
  167.         return $this;
  168.     }
  169.     public function getMetadata(): ?MetadataCustomRegistro
  170.     {
  171.         return $this->metadata;
  172.     }
  173.     public function setMetadata(?MetadataInterface $metadataCustomRegistro): static
  174.     {
  175.         $this->metadata $metadataCustomRegistro;
  176.         return $this;
  177.     }
  178. }