private function queryAddFilterByParameter(array $values): string
    {
        $filters = [];
        foreach ($values as $name => $value) {
            if (!\in_array($name, $this->fieldsFilterable, true)) {
                throw new \InvalidArgumentException(\sprintf(
                    'Parameter %s is not available for filtering in repository %s',
                    $name,
                    $this->name
                ));
            }
            $filters[] = $name.':'.\rawurldecode($value);
        }

        return \implode(',', $filters);
    }
private function queryAddFilterByParameter(array $values): string
    {
        $filters = [];
        foreach ($values as $name => $value) {
            if (!\in_array($name, $this->fieldsFilterable, true)) {
                throw new \InvalidArgumentException(\sprintf(
                    'Parameter %s is not available for filtering in repository %s',
                    $name,
                    $this->name
                ));
            }
            $filters[] = $name.':'.\rawurldecode($value);
        }

        return \implode(',', $filters);
    }
private function queryAddFilterByParameter ( array $ values ) : string { $ filters = [ ] ; foreach ( $ values as $ name => $ value ) { if ( ! \ in_array ( $ name , $ this -> fieldsFilterable , true ) ) { throw new \ InvalidArgumentException ( \ sprintf ( 'Parameter %s is not available for filtering in repository %s' , $ name , $ this -> name ) ) ; } $ filters [ ] = $ name . ':' . \ rawurldecode ( $ value ) ; } return \ implode ( ',' , $ filters ) ; }
Checks if the parameters are whitelisted and creates the URL string.

@param array $values

@throws \InvalidArgumentException

@return string
Checks if the parameters are whitelisted and creates the URL string .