src/Domain/Entity/Handler.php line 8

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