toArray() public method

Convert object to array.
See also: Elastica\Query\AbstractQuery::toArray()
public toArray ( ) : array
return array Query array
Beispiel #1
0
 /**
  * @group unit
  */
 public function testToArray()
 {
     $typeQuery = new Type('type_name');
     $expectedArray = array('type' => array('value' => 'type_name'));
     $this->assertEquals($expectedArray, $typeQuery->toArray());
 }