Elastica\Type::getIndex PHP Метод

getIndex() публичный Метод

Returns index client.
public getIndex ( ) : Index
Результат Index Index object
    public function getIndex()
    {
        return $this->_index;
    }

Usage Example

Пример #1
0
 /**
  * @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;
 }
All Usage Examples Of Elastica\Type::getIndex