Allows retrieval of a set or results, if a label has been used to
store results then passing the label as a parameter returns just
that set of results.
public get ( string $label = null ) : ArrayIterator | ||
$label | string | |
return | ArrayIterator |
public function testNoLabelFetch() { $array1 = ['test1', 'test2', 'test3']; $array2 = ['test4', 'test5', 'test6']; $set = new QueryResultset(); $set->add($array1); $set->add($array2); $this->assertEquals(6, count($set->get())); }