public function removeType($type)
    {
        if (!$this->hasType($type)) {
            throw PlaceException::autocompleteTypeDoesNotExist($type);
        }

        $index = array_search($type, $this->types);
        unset($this->types[$index]);
    }
public function removeType($type)
    {
        if (!$this->hasType($type)) {
            throw PlaceException::autocompleteTypeDoesNotExist($type);
        }

        $index = array_search($type, $this->types);
        unset($this->types[$index]);
    }
public function removeType ( $ type ) { if ( ! $ this -> hasType ( $ type ) ) { throw PlaceException :: autocompleteTypeDoesNotExist ( $ type ) ; } $ index = array_search ( $ type , $ this -> types ) ; unset ( $ this -> types [ $ index ] ) ; }
Removes a type from the autocomplete.

@param string $type The type to remove.

@throws \Ivory\GoogleMap\Exception\PlaceException If the type does not exist.
Removes a type from the autocomplete .