data = $data; } public function setType(string $name, array $params = []): void { $this->type = ['name' => $name, 'params' => $params]; } /** * @return mixed */ public function getData() { return $this->data; } /** * @param mixed $data */ public function setData($data): void { $this->data = $data; } }