parent
77c0c14c14
commit
20317698e9
@ -0,0 +1,34 @@ |
||||
<?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]); |
||||
} |
||||
} |
@ -0,0 +1,13 @@ |
||||
<?php |
||||
|
||||
namespace Rinsvent\DTO2Data\Tests\unit\Converter\fixtures\FillTest; |
||||
|
||||
class CollectionItem |
||||
{ |
||||
public string $value; |
||||
|
||||
public function __construct(string $value) |
||||
{ |
||||
$this->value = $value; |
||||
} |
||||
} |
Loading…
Reference in new issue