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.
 
 
 
dto2data/tests/unit/Converter/fixtures/FillTest/Collection.php

34 lines
567 B

<?php
namespace Rinsvent\DTO2Data\Tests\unit\Converter\fixtures\FillTest;
class Collection implements \Iterator
{
public array $items = [];
private $position = 0;
public function rewind()
{
$this->position = 0;
}
public function current()
{
return $this->items[$this->position];
}
public function key()
{
return $this->position;
}
public function next()
{
++$this->position;
}
public function valid()
{
return isset($this->items[$this->position]);
}
}