A collection of Documents returned from a Query. This class acts like an array but also has some helper methods for manipulating the collection in useful ways.
Inheritance: implements IteratorAggregate, implements ArrayAccess, implements Countable
Example #1
0
 public function testFirstNoResults()
 {
     $result = new Result(array(), 0);
     $doc = $result->first();
     $this->assertFalse($doc);
 }