Passed
Push — master ( cb35bf...01d583 )
by Marius
35s
created

PropertyFixtures   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 11
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A newProperty() 0 7 1
1
<?php
2
3
namespace Wikibase\DataModel\Services\Fixtures;
4
5
use Wikibase\DataModel\Entity\Property;
6
use Wikibase\DataModel\Entity\PropertyId;
7
8
/**
9
 * @license GPL-2.0-or-later
10
 * @author Jeroen De Dauw < [email protected] >
11
 */
12
class PropertyFixtures {
13
14
	public static function newProperty() {
15
		return new Property(
16
			new PropertyId( 'P1' ),
17
			null,
18
			'string'
19
		);
20
	}
21
22
}
23