src/Domain/Entity/Handler.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Domain\Entity;
  3. use DateTimeInterface;
  4. use Doctrine\DBAL\Types\Types;
  5. use Symfony\Component\Uid\Uuid;
  6. class Handler
  7. {
  8.     private ?string $key null;
  9.     private ?string $nombre null;
  10.     private ?DateTimeInterface $createdAt null;
  11.     private ?DateTimeInterface $updatedAt null;
  12.     private ?string $optionsSchema null;
  13.     private ?string $options null;
  14.     private ?string $condition null;
  15.     private ?int $prioridad null;
  16.     private ?Uuid $id null;
  17.     private $servicio;
  18.     private $context;
  19.     private $event;
  20.     private $metadata;
  21.     private $preExecute;
  22.     private $postExecute;
  23.     private ?DateTimeInterface $deletedAt null;
  24.     public function __toString(): string
  25.     {
  26.         return $this->getNombre()??$this->getKey()??'';
  27.     }
  28.     public function getServicio(): ?string
  29.     {
  30.         return $this->servicio;
  31.     }
  32.     public function setServicio(?string $servicio): static
  33.     {
  34.         $this->servicio $servicio;
  35.         return $this;
  36.     }
  37.     public function getKey(): ?string
  38.     {
  39.         return $this->key;
  40.     }
  41.     public function setKey(string $key): static
  42.     {
  43.         $this->key $key;
  44.         return $this;
  45.     }
  46.     public function getCreatedAt(): ?DateTimeInterface
  47.     {
  48.         return $this->createdAt;
  49.     }
  50.     public function setCreatedAt(DateTimeInterface $createdAt): static
  51.     {
  52.         $this->createdAt $createdAt;
  53.         return $this;
  54.     }
  55.     public function getUpdatedAt(): ?DateTimeInterface
  56.     {
  57.         return $this->updatedAt;
  58.     }
  59.     public function setUpdatedAt(DateTimeInterface $updatedAt): static
  60.     {
  61.         $this->updatedAt $updatedAt;
  62.         return $this;
  63.     }
  64.     public function getCondition(): ?string
  65.     {
  66.         return $this->condition;
  67.     }
  68.     public function setCondition(?string $condition): static
  69.     {
  70.         $this->condition $condition;
  71.         return $this;
  72.     }
  73.     public function getPrioridad(): ?int
  74.     {
  75.         return $this->prioridad;
  76.     }
  77.     public function setPrioridad(?int $prioridad): static
  78.     {
  79.         $this->prioridad $prioridad;
  80.         return $this;
  81.     }
  82.     public function getId(): ?Uuid
  83.     {
  84.         return $this->id;
  85.     }
  86.     public function getMetadata(): ?Metadata
  87.     {
  88.         return $this->metadata;
  89.     }
  90.     public function setMetadata(?Metadata $metadata): static
  91.     {
  92.         $this->metadata $metadata;
  93.         return $this;
  94.     }
  95.     public function getOptionsSchema(): ?string
  96.     {
  97.         return $this->optionsSchema;
  98.     }
  99.     public function setOptionsSchema(?string $optionsSchema): static
  100.     {
  101.         $this->optionsSchema $optionsSchema;
  102.         return $this;
  103.     }
  104.     public function getOptions(): ?string
  105.     {
  106.         return $this->options;
  107.     }
  108.     public function setOptions(?string $options): static
  109.     {
  110.         $this->options $options;
  111.         return $this;
  112.     }
  113.     public function getContext(): ?string
  114.     {
  115.         return $this->context;
  116.     }
  117.     public function setContext(?string $context): static
  118.     {
  119.         $this->context $context;
  120.         return $this;
  121.     }
  122.     public function getEvent(): ?string
  123.     {
  124.         return $this->event;
  125.     }
  126.     public function setEvent(?string $event): static
  127.     {
  128.         $this->event $event;
  129.         return $this;
  130.     }
  131.     public function getPreExecute(): ?string
  132.     {
  133.         return $this->preExecute;
  134.     }
  135.     public function setPreExecute(?string $preExecute): static
  136.     {
  137.         $this->preExecute $preExecute;
  138.         return $this;
  139.     }
  140.     public function getPostExecute(): ?string
  141.     {
  142.         return $this->postExecute;
  143.     }
  144.     public function setPostExecute(?string $postExecute): static
  145.     {
  146.         $this->postExecute $postExecute;
  147.         return $this;
  148.     }
  149.     public function getNombre(): ?string
  150.     {
  151.         return $this->nombre;
  152.     }
  153.     public function setNombre(?string $nombre): static
  154.     {
  155.         $this->nombre $nombre;
  156.         return $this;
  157.     }
  158.     public function getDeletedAt(): ?DateTimeInterface
  159.     {
  160.         return $this->deletedAt;
  161.     }
  162.     public function setDeletedAt(?DateTimeInterface $deletedAt): static
  163.     {
  164.         $this->deletedAt $deletedAt;
  165.         return $this;
  166.     }
  167. }