protected function checkUnknownField(Resource $resource, array $fields)
    {
        $message = $resource->hasFields($fields);
        if ($message !== true) {
            $this->sendError(static::ERROR_UNKNOWN_FIELDS, $message);
        }
    }
protected function checkUnknownField(Resource $resource, array $fields)
    {
        $message = $resource->hasFields($fields);
        if ($message !== true) {
            $this->sendError(static::ERROR_UNKNOWN_FIELDS, $message);
        }
    }
protected function checkUnknownField ( Resource $ resource , array $ fields ) { $ message = $ resource -> hasFields ( $ fields ) ; if ( $ message !== true ) { $ this -> sendError ( static :: ERROR_UNKNOWN_FIELDS , $ message ) ; } }
Checks if a resource has all fields passed

@param Resource $resource Resource
@param string[] $fields   List of fields to test

@throws RouterException If there are unknown fields
Checks if a resource has all fields passed