private function completeParameter(ParameterInterface $parameter, $spaceName)
    {
        if (!$parameter instanceof IncompleteParameterInterface) {
            return $parameter;
        }

        switch ($parameter->getName()) {
            case 'content_type_name':
                $contentTypeFilter = $this->resolveContentTypeNameFilter($parameter, $spaceName);
                if (null === $contentTypeFilter) {
                    throw new \RuntimeException(sprintf('Could not resolve content type with name "%s".', $parameter->getValue()));
                }

                return $contentTypeFilter;
                break;
            default:
                throw new \LogicException(sprintf('Unknown incomplete parameter of type "%s" is being used.', $parameter->getName()));
                break;
        }
    }
private function completeParameter(ParameterInterface $parameter, $spaceName)
    {
        if (!$parameter instanceof IncompleteParameterInterface) {
            return $parameter;
        }

        switch ($parameter->getName()) {
            case 'content_type_name':
                $contentTypeFilter = $this->resolveContentTypeNameFilter($parameter, $spaceName);
                if (null === $contentTypeFilter) {
                    throw new \RuntimeException(sprintf('Could not resolve content type with name "%s".', $parameter->getValue()));
                }

                return $contentTypeFilter;
                break;
            default:
                throw new \LogicException(sprintf('Unknown incomplete parameter of type "%s" is being used.', $parameter->getName()));
                break;
        }
    }
private function completeParameter ( ParameterInterface $ parameter , $ spaceName ) { if ( ! $ parameter instanceof IncompleteParameterInterface ) { return $ parameter ; } switch ( $ parameter -> getName ( ) ) { case 'content_type_name' : $ contentTypeFilter = $ this -> resolveContentTypeNameFilter ( $ parameter , $ spaceName ) ; if ( null === $ contentTypeFilter ) { throw new \ RuntimeException ( sprintf ( 'Could not resolve content type with name "%s".' , $ parameter -> getValue ( ) ) ) ; } return $ contentTypeFilter ; break ; default : throw new \ LogicException ( sprintf ( 'Unknown incomplete parameter of type "%s" is being used.' , $ parameter -> getName ( ) ) ) ; break ; } }
Ensures that the provided parameter is complete.

@param ParameterInterface $parameter
@param string             $spaceName
@return ParameterInterface
Ensures that the provided parameter is complete .