Examples   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 4
dl 0
loc 14
c 1
b 0
f 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 2 1
A getIterator() 0 2 1
1
<?php declare(strict_types = 1);
0 ignored issues
show
introduced by
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