Completed
Push — master ( 2623ee...a82f7c )
by Jeroen De
06:13 queued 04:44
created

PropertyValueCollections::getIterator()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
declare( strict_types = 1 );
4
5
namespace ModernTimeline\ResultFacade;
6
7
use Traversable;
8
9
class PropertyValueCollections implements \IteratorAggregate {
10
11
	private $propertyValueCollections;
12
13
	/**
14
	 * @param PropertyValueCollection[] $propertyValueCollections
15
	 */
16 3
	public function __construct( array $propertyValueCollections ) {
17 3
		$this->propertyValueCollections = $propertyValueCollections;
18 3
	}
19
20
	/**
21
	 * @return PropertyValueCollection[]
22
	 */
23 3
	public function toArray(): array {
24 3
		return $this->propertyValueCollections;
25
	}
26
27 2
	public function getIterator(): Traversable {
28 2
		return new \ArrayIterator( $this->propertyValueCollections );
29
	}
30
31
}
32