data = $data; $this->method = $method; $this->key = $key; $this->type = $type; } public function getData() { return $this->data; } public function setData($data): self { $this->data = $data; return $this; } public function getMethod(): ?string { return $this->method; } public function setMethod(string $method): self { $this->method = $method; return $this; } public function getKey(): ?string { return $this->key; } public function setKey(string $key): self { $this->key = $key; return $this; } public function getType(): string { return $this->type; } public function setType(string $type): self { $this->type = $type; return $this; } }