Example #1
0
 public function getErrorResponse()
 {
     $response = parent::getErrorResponse();
     if (!empty($this->errors)) {
         $response->withErrors($this->errors);
     }
     return $response;
 }