Move phpactor configuration files

This commit is contained in:
Oliver Davies 2025-03-29 23:09:54 +00:00
parent f775a4341b
commit 383dab85f2
8 changed files with 2 additions and 3 deletions

View file

@ -0,0 +1,22 @@
<?php
declare(strict_types=1);
namespace {{ prototype.namespace }};
{% for class in prototype.classes %}
final class {{ class.name }} implements \IteratorAggregate {
public function __construct(private array $items = []) {
}
public function getIterator(): \Iterator {
return new \ArrayIterator($this->items);
}
public function toArray(): array {
return $this->items;
}
}
{% endfor %}