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.

18 lines
316 B

  1. <?php
  2. class SqlResultCollection extends ArrayIterator
  3. {
  4. private $items;
  5. public function __construct($items)
  6. {
  7. $this->items = $items;
  8. foreach ($items as $item) {
  9. parent::append($item);
  10. }
  11. }
  12. public function fetchAll()
  13. {
  14. return $this->items;
  15. }
  16. }