BuilderFactory::newSimpleItemBuilder()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 1

Importance

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