original_string: public function getValidationErrors()
      {
          $errors = [];
          if (isset($this->response->errors)) {
              foreach ($this->response->errors as $error => $reasons) {
                  $errors[] = [
                      'attribute' => $error,
                      'reason'    => $this->getValidationReasonsAsString($reasons),
                  ];
              }
          }
  
          return $errors;
      }
code: public function getValidationErrors()
      {
          $errors = [];
          if (isset($this->response->errors)) {
              foreach ($this->response->errors as $error => $reasons) {
                  $errors[] = [
                      'attribute' => $error,
                      'reason'    => $this->getValidationReasonsAsString($reasons),
                  ];
              }
          }
  
          return $errors;
      }
code_tokens: public function getValidationErrors ( ) { $ errors = [ ] ; if ( isset ( $ this -> response -> errors ) ) { foreach ( $ this -> response -> errors as $ error => $ reasons ) { $ errors [ ] = [ 'attribute' => $ error , 'reason' => $ this -> getValidationReasonsAsString ( $ reasons ) , ] ; } } return $ errors ; }
docstring: Get validation errors that occurred in requests.
  
  @return array
docstring_tokens: Get validation errors that occurred in requests .