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

Ads a field with arguments to the range query.
public setType ( string $typeName )
$typeName string Type name
Пример #1
0
 /**
  * @group unit
  */
 public function testSetType()
 {
     $typeQuery = new Type();
     $returnValue = $typeQuery->setType('type_name');
     $this->assertInstanceOf('Elastica\\Query\\Type', $returnValue);
 }