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

ItemFixtures::newItem()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
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\Item;
6
use Wikibase\DataModel\Entity\ItemId;
7
8
/**
9
 * @license GPL-2.0-or-later
10
 * @author Jeroen De Dauw < [email protected] >
11
 */
12
class ItemFixtures {
13
14
	public static function newItem() {
15
		return new Item(
16
			new ItemId( 'Q1' )
17
		);
18
	}
19
20
}
21