public function getIndex() { return $this->_index; }
/** * @param string|\Elastica\Type $type * * @return $this */ public function setType($type) { if ($type instanceof Type) { $this->setIndex($type->getIndex()->getName()); $type = $type->getName(); } $this->_type = (string) $type; return $this; }