src/Api/Operation.php
public function getErrors()
    {
        if ($this->errors === null) {
            if ($errors = $this['errors']) {
                foreach ($errors as $key => $error) {
                    $errors[$key] = $this->shapeFor($error);
                }
                $this->errors = $errors;
            } else {
                $this->errors = [];
            }
        }

        return $this->errors;
    }
public function getErrors()
    {
        if ($this->errors === null) {
            if ($errors = $this['errors']) {
                foreach ($errors as $key => $error) {
                    $errors[$key] = $this->shapeFor($error);
                }
                $this->errors = $errors;
            } else {
                $this->errors = [];
            }
        }

        return $this->errors;
    }
public function getErrors ( ) { if ( $ this -> errors === null ) { if ( $ errors = $ this [ 'errors' ] ) { foreach ( $ errors as $ key => $ error ) { $ errors [ $ key ] = $ this -> shapeFor ( $ error ) ; } $ this -> errors = $ errors ; } else { $ this -> errors = [ ] ; } } return $ this -> errors ; }
Get an array of operation error shapes.

@return Shape[]
Get an array of operation error shapes .