Elastica\Query\Type::setType PHP Метод

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

Ads a field with arguments to the range query.
public setType ( string $typeName )
$typeName string Type name
    public function setType($typeName)
    {
        $this->_type = $typeName;
        return $this;
    }

Usage Example

Пример #1
0
 /**
  * @group unit
  */
 public function testSetType()
 {
     $typeQuery = new Type();
     $returnValue = $typeQuery->setType('type_name');
     $this->assertInstanceOf('Elastica\\Query\\Type', $returnValue);
 }