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

Wordlift_Property_Entity_Reference   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 36
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getURL() 0 4 1
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
}