19 lines
316 B

<?php
class SqlResultCollection extends ArrayIterator
{
private $items;
public function __construct($items)
{
$this->items = $items;
foreach ($items as $item) {
parent::append($item);
}
}
public function fetchAll()
{
return $this->items;
}
}