PropertyContent::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

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