PropertyInfo::getRevisionId()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 3
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
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
}