PropertyRow   A
last analyzed

Complexity

Total Complexity 8

Size/Duplication

Total Lines 64
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 8
lcom 1
cbo 1
dl 0
loc 64
ccs 0
cts 18
cp 0
rs 10
c 0
b 0
f 0

8 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getPropertyJson() 0 3 1
A getPropertyInfo() 0 3 1
A getNumericPropertyId() 0 3 1
A getPageTitle() 0 3 1
A getRevisionId() 0 3 1
A getRevisionTime() 0 3 1
A getPropertyType() 0 3 1
1
<?php
2
3
namespace Queryr\EntityStore\Data;
4
5
/**
6
 * Value object representing a row in the properties table.
7
 *
8
 * @licence GNU GPL v2+
9
 * @author Jeroen De Dauw < [email protected] >
10
 */
11
class PropertyRow {
12
13
	private $propertyJson;
14
	private $propertyInfo;
15
16
	/**
17
	 * @param string $propertyJson
18
	 * @param PropertyInfo $info
19
	 */
20
	public function __construct( $propertyJson, PropertyInfo $info ) {
21
		$this->propertyJson = $propertyJson;
22
		$this->propertyInfo = $info;
23
	}
24
25
	/**
26
	 * @return string
27
	 */
28
	public function getPropertyJson() {
29
		return $this->propertyJson;
30
	}
31
32
	/**
33
	 * @return PropertyInfo
34
	 */
35
	public function getPropertyInfo() {
36
		return $this->propertyInfo;
37
	}
38
39
	/**
40
	 * @return int
41
	 */
42
	public function getNumericPropertyId() {
43
		return $this->propertyInfo->getNumericPropertyId();
44
	}
45
46
	/**
47
	 * @return string
48
	 */
49
	public function getPageTitle() {
50
		return $this->propertyInfo->getPageTitle();
51
	}
52
53
	/**
54
	 * @return int
55
	 */
56
	public function getRevisionId() {
57
		return $this->propertyInfo->getRevisionId();
58
	}
59
60
	/**
61
	 * @return string
62
	 */
63
	public function getRevisionTime() {
64
		return $this->propertyInfo->getRevisionTime();
65
	}
66
67
	/**
68
	 * @return string
69
	 */
70
	public function getPropertyType() {
71
		return $this->propertyInfo->getPropertyType();
72
	}
73
74
}