errors = $errors; } public function getErrors(): array { return $this->errors; } }