ValueSnakRow::getValue()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace Wikibase\QueryEngine\SQLStore\SnakStore;
4
5
use DataValues\DataValue;
6
use InvalidArgumentException;
7
use Wikibase\DataModel\Entity\EntityId;
8
9
/**
10
 * @licence GNU GPL v2+
11
 * @author Jeroen De Dauw < [email protected] >
12
 */
13
class ValueSnakRow extends SnakRow {
14
15
	private $value;
16
17
	/**
18
	 * @param DataValue $value
19
	 * @param string $propertyId
20
	 * @param int $snakRole
21
	 * @param EntityId $subjectId
22
	 * @param int $statementRank
23
	 *
24
	 * @throws InvalidArgumentException
25
	 */
26
	public function __construct( DataValue $value, $propertyId, $snakRole, EntityId $subjectId, $statementRank ) {
27
		parent::__construct( $propertyId, $snakRole, $subjectId, $statementRank );
28
29
		$this->value = $value;
30
	}
31
32
	/**
33
	 * @return DataValue
34
	 */
35
	public function getValue() {
36
		return $this->value;
37
	}
38
39
}
40