Completed
Push — master ( 228e92...6a576a )
by David
02:49
created

Wordlift_Property_Entity_Reference::getURL()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * @since 3.8.0
4
 * @package Wordlift
5
 */
6
7
/**
8
 * @since 3.8.0
9
 */
10
class Wordlift_Property_Entity_Reference {
11
12
	/**
13
	 * The URL associated with this entity reference.
14
	 *
15
	 * @since 3.8.0
16
	 * @access private
17
	 * @var string $url The URL associated with the entity reference.
18
	 */
19
	private $url;
20
21
	/**
22
	 * Create a Wordlift_Property_Entity_Reference instance with the provided URL.
23
	 *
24
	 * @since 3.8.0
25
	 *
26
	 * @param string $url The URL.
27
	 */
28
	public function __construct( $url ) {
29
30
		$this->url = $url;
31
32
	}
33
34
	/**
35
	 * Get the URL associated with this entity reference.
36
	 *
37
	 * @since 3.8.0
38
	 * @return string The URL associated with the entity reference.
39
	 */
40
	public function getURL() {
41
42
		return $this->url;
43
	}
44
45
}