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

PropertyFixtures::newProperty()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 7
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
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