BuilderFactory   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A newSimpleItemBuilder() 0 6 1
A newSimplePropertyBuilder() 0 3 1
1
<?php
2
3
namespace Queryr\Resources\Builders;
4
5
/**
6
 * @licence GNU GPL v2+
7
 * @author Jeroen De Dauw < [email protected] >
8
 */
9
class BuilderFactory {
10
11 1
	public function newSimpleItemBuilder( $languageCode, ResourceLabelLookup $labelLookup ) {
12 1
		return new SimpleItemBuilder(
13 1
			$languageCode,
14 1
			new SimpleStatementsBuilder( $languageCode, $labelLookup )
15 1
		);
16
	}
17
18 1
	public function newSimplePropertyBuilder( $languageCode ) {
19 1
		return new SimplePropertyBuilder( $languageCode );
20
	}
21
22
}