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

SubjectCollection::getSubjects()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 3
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
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