Move phpactor configuration
All checks were successful
/ check (push) Successful in 1m42s

This commit is contained in:
Oliver Davies 2025-07-26 22:28:18 +01:00
parent 6c1b494e82
commit fa0bad904c
12 changed files with 6 additions and 26 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 %}