Completed
Push — main ( b55b92...e8d442 )
by
unknown
05:41
created

ItemContent::getData()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

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