src/TheTVDbAPI.php
private function parseErrorSection(array $errors)
    {
        if (array_key_exists('invalidFilters', $errors)) {
            $this->jsonErrors[] = new JSONError(JSONError::INVALID_FILTER, $errors['invalidFilters']);
        }
        if (array_key_exists('invalidQueryParams', $errors)) {
            $this->jsonErrors[] = new JSONError(JSONError::INVALID_QUERYPARAMS, $errors['invalidQueryParams']);
        }
        if (array_key_exists('invalidLanguage', $errors)) {
            $this->jsonErrors[] = new JSONError();
        }
    }
private function parseErrorSection(array $errors)
    {
        if (array_key_exists('invalidFilters', $errors)) {
            $this->jsonErrors[] = new JSONError(JSONError::INVALID_FILTER, $errors['invalidFilters']);
        }
        if (array_key_exists('invalidQueryParams', $errors)) {
            $this->jsonErrors[] = new JSONError(JSONError::INVALID_QUERYPARAMS, $errors['invalidQueryParams']);
        }
        if (array_key_exists('invalidLanguage', $errors)) {
            $this->jsonErrors[] = new JSONError();
        }
    }
private function parseErrorSection ( array $ errors ) { if ( array_key_exists ( 'invalidFilters' , $ errors ) ) { $ this -> jsonErrors [ ] = new JSONError ( JSONError :: INVALID_FILTER , $ errors [ 'invalidFilters' ] ) ; } if ( array_key_exists ( 'invalidQueryParams' , $ errors ) ) { $ this -> jsonErrors [ ] = new JSONError ( JSONError :: INVALID_QUERYPARAMS , $ errors [ 'invalidQueryParams' ] ) ; } if ( array_key_exists ( 'invalidLanguage' , $ errors ) ) { $ this -> jsonErrors [ ] = new JSONError ( ) ; } }
Parses the errors and stores them in lastJSONErrors.

@param array $errors The JSON errors.

@return void
Parses the errors and stores them in lastJSONErrors .