sName = $sName; $this->sType = $sType; $this->oConverter = $oConverter; } public function GetName(): string { return $this->sName; } public function SetName(string $sName): void { $this->sName = $sName; } public function GetType(): string { return $this->sType; } public function SetType(string $sType): void { $this->sType = $sType; } public function ConvertValue(mixed $oData): mixed { if (is_null($this->oConverter)) { return $oData; } return $this->oConverter->Convert($oData); } public function UpdateOutputValue(mixed $oData, string $sEventType): void { $this->aValues[$sEventType] = $this->ConvertValue($oData); } public function GetValue(string $sEventType): mixed { return $this->aValues[$sEventType] ?? null; } }