Elastica\Query\Type::setType PHP Method

setType() public method

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

Exemplo n.º 1
0
 /**
  * @group unit
  */
 public function testSetType()
 {
     $typeQuery = new Type();
     $returnValue = $typeQuery->setType('type_name');
     $this->assertInstanceOf('Elastica\\Query\\Type', $returnValue);
 }