ItemContent   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 19
ccs 5
cts 5
cp 1
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 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
	public 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
}
30