src/DataLayer/DataLayerEvent.php line 5

Open in your IDE?
  1. <?php
  2. namespace App\DataLayer;
  3. class DataLayerEvent
  4. {
  5.     private ?string $name;
  6.     private ?array $values null;
  7.     public function __construct(?string $name null)
  8.     {
  9.         $this->name $name;
  10.     }
  11.     public function getName(): ?string
  12.     {
  13.         return $this->name;
  14.     }
  15.     public function setName(string $name): static
  16.     {
  17.         $this->name $name;
  18.         return $this;
  19.     }
  20.     public function getValue(string $key): ?string
  21.     {
  22.         return $this->values[$key] ?? null;
  23.     }
  24.     public function getValues(): ?array
  25.     {
  26.         return $this->values;
  27.     }
  28.     public function setValues(array $values): static
  29.     {
  30.         $this->values $values;
  31.         return $this;
  32.     }
  33.     public function setValue(string $keystring $value): static
  34.     {
  35.         $this->values[$key] = $value;
  36.         return $this;
  37.     }
  38. }