Completed
Push — master ( 952e89...59c62b )
by Jeroen De
03:27
created

SubjectCollection   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 19
ccs 0
cts 5
cp 0
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getSubjects() 0 3 1
1
<?php
2
3
namespace ModernTimeline\ResultFacade;
4
5
class SubjectCollection {
6
7
	private $pages;
8
9
	/**
10
	 * @param Subject[] $pages
11
	 */
12
	public function __construct( array $pages ) {
13
		$this->pages = $pages;
14
	}
15
16
	/**
17
	 * @return Subject[]
18
	 */
19
	public function getSubjects(): iterable {
20
		return $this->pages;
21
	}
22
23
}
24