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

PropertyValueCollections   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 3
lcom 1
cbo 0
dl 0
loc 23
ccs 7
cts 7
cp 1
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A toArray() 0 3 1
A getIterator() 0 3 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