ItemList   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

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

2 Methods

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