Completed
Push — master ( 6f186f...fc69eb )
by adam
04:58
created

ItemContent::getData()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
3
namespace Wikibase\DataModel;
4
5
use Mediawiki\DataModel\Content;
6
use Wikibase\DataModel\Entity\Item;
7
8
/**
9
 * @author Addshore
10
 */
11
class ItemContent extends Content {
12
13
	const MODEL = 'wikibase-item';
14
15
	/**
16
	 * @param Item $item
17
	 */
18 1
	public function __construct( Item $item ) {
19 1
		parent::__construct( $item, self::MODEL );
20 1
	}
21
22
	/**
23
	 * @see Content::getData
24
	 * @return Item
25
	 */
26 1
	public function getData() {
27 1
		return parent::getData();
28
	}
29
}