PropertyInfo   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 59
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 6
lcom 0
cbo 0
dl 0
loc 59
ccs 0
cts 17
cp 0
rs 10
c 0
b 0
f 0

6 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 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 the info stored for a property in the properties table.
7
 *
8
 * @licence GNU GPL v2+
9
 * @author Jeroen De Dauw < [email protected] >
10
 */
11
class PropertyInfo {
12
13
	private $propertyId;
14
	private $pageTitle;
15
	private $revisionId;
16
	private $revisionTime;
17
	private $propertyType;
18
19
	/**
20
	 * @param string|int $numericPropertyId
21
	 * @param string $pageTitle
22
	 * @param string|int $revisionId
23
	 * @param string $revisionTime
24
	 * @param string $propertyType
25
	 */
26
	public function __construct( $numericPropertyId, $pageTitle, $revisionId, $revisionTime, $propertyType ) {
27
		$this->propertyId = (int)$numericPropertyId;
28
		$this->pageTitle = $pageTitle;
29
		$this->revisionId = (int)$revisionId;
30
		$this->revisionTime = $revisionTime;
31
		$this->propertyType = $propertyType;
32
	}
33
34
	/**
35
	 * @return int
36
	 */
37
	public function getNumericPropertyId() {
38
		return $this->propertyId;
39
	}
40
41
	/**
42
	 * @return string
43
	 */
44
	public function getPageTitle() {
45
		return $this->pageTitle;
46
	}
47
48
	/**
49
	 * @return int
50
	 */
51
	public function getRevisionId() {
52
		return $this->revisionId;
53
	}
54
55
	/**
56
	 * @return string
57
	 */
58
	public function getRevisionTime() {
59
		return $this->revisionTime;
60
	}
61
62
	/**
63
	 * @return string
64
	 */
65
	public function getPropertyType() {
66
		return $this->propertyType;
67
	}
68
69
}