error = $error; } public function getError(): ?string { return $this->error; } }