Issues (57)

src/Entities/Examples.php (1 issue)

1
<?php declare(strict_types = 1);
0 ignored issues
show
Expected 1 line before declare statement, found 0.
Loading history...
2
3
namespace App\Entities;
4
5
/** @codeCoverageIgnore */
6
class Examples implements \IteratorAggregate {
7
8
	/** @var array<\App\Entities\Example> */
9
	private array $examples;
10
11
	public function __construct( Example ...$examples ) {
12
		$this->examples = $examples;
13
	}
14
15
	/**
16
	 * {@inheritDoc}
17
	 */
18
	public function getIterator() {
19
		return new \ArrayIterator( $this->examples );
20
	}
21
22
}
23