statusCode = $statusCode; $this->errors = $errors; } /** * @return int HTTP-Statuscode */ public function getStatusCode() { return $this->statusCode; } /** * @return bool */ public function hasErrors() { return count($this->errors) > 0; } /** * @return array */ public function getErrors() { return $this->errors; } }