ItemList::getElements()   A
last analyzed

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
cc 1
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Queryr\Resources;
4
5
/**
6
 * @licence GNU GPL v2+
7
 * @author Jeroen De Dauw < [email protected] >
8
 */
9
class ItemList {
10
11
	private $elements;
12
13
	/**
14
	 * @param ItemListElement[] $itemListElements
15
	 */
16 1
	public function __construct( array $itemListElements ) {
17 1
		$this->elements = $itemListElements;
18 1
	}
19
20
	/**
21
	 * @return ItemListElement[]
22
	 */
23 1
	public function getElements() {
24 1
		return $this->elements;
25
	}
26
27
}
28