public function getComponentRestriction($type)
    {
        if (!$this->hasComponentRestriction($type)) {
            throw PlaceException::autocompleteComponentRestrictionDoesNotExist($type);
        }

        return $this->componentRestrictions[$type];
    }
public function getComponentRestriction($type)
    {
        if (!$this->hasComponentRestriction($type)) {
            throw PlaceException::autocompleteComponentRestrictionDoesNotExist($type);
        }

        return $this->componentRestrictions[$type];
    }
public function getComponentRestriction ( $ type ) { if ( ! $ this -> hasComponentRestriction ( $ type ) ) { throw PlaceException :: autocompleteComponentRestrictionDoesNotExist ( $ type ) ; } return $ this -> componentRestrictions [ $ type ] ; }
Gets a specific component restriction.

@param string $type The component restriction type.

@throws \Ivory\GoogleMap\Exception\PlaceException If the component restriction type does not exist.

@return mixed The component restriction.
Gets a specific component restriction .