protected function parseQueryParameters(array $parameters = [])
    {
        foreach ($parameters as $key => $candidate) {
            if (is_a($candidate, 'Tmdb\Model\Common\QueryParameter\QueryParameterInterface')) {
                $interfaces = class_implements($candidate);

                if (array_key_exists('Tmdb\Model\Common\QueryParameter\QueryParameterInterface', $interfaces)) {
                    unset($parameters[$key]);

                    $parameters[$candidate->getKey()] = $candidate->getValue();
                }
            }
        }

        return $parameters;
    }
protected function parseQueryParameters(array $parameters = [])
    {
        foreach ($parameters as $key => $candidate) {
            if (is_a($candidate, 'Tmdb\Model\Common\QueryParameter\QueryParameterInterface')) {
                $interfaces = class_implements($candidate);

                if (array_key_exists('Tmdb\Model\Common\QueryParameter\QueryParameterInterface', $interfaces)) {
                    unset($parameters[$key]);

                    $parameters[$candidate->getKey()] = $candidate->getValue();
                }
            }
        }

        return $parameters;
    }
protected function parseQueryParameters ( array $ parameters = [ ] ) { foreach ( $ parameters as $ key => $ candidate ) { if ( is_a ( $ candidate , 'Tmdb\Model\Common\QueryParameter\QueryParameterInterface' ) ) { $ interfaces = class_implements ( $ candidate ) ; if ( array_key_exists ( 'Tmdb\Model\Common\QueryParameter\QueryParameterInterface' , $ interfaces ) ) { unset ( $ parameters [ $ key ] ) ; $ parameters [ $ candidate -> getKey ( ) ] = $ candidate -> getValue ( ) ; } } } return $ parameters ; }
Process query parameters

@param  array $parameters
@return array
Process query parameters