<?php
namespace App\DataLayer;
class DataLayerEvent
{
private ?string $name;
private ?array $values = null;
public function __construct(?string $name = null)
{
$this->name = $name;
}
public function getName(): ?string
{
return $this->name;
}
public function setName(string $name): static
{
$this->name = $name;
return $this;
}
public function getValue(string $key): ?string
{
return $this->values[$key] ?? null;
}
public function getValues(): ?array
{
return $this->values;
}
public function setValues(array $values): static
{
$this->values = $values;
return $this;
}
public function setValue(string $key, string $value): static
{
$this->values[$key] = $value;
return $this;
}
}