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

ItemContent   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getData() 0 3 1
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