You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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;
}
}