ItemLink   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
c 1
b 0
f 0
dl 0
loc 29
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
3
/**
4
 * Represents a link to a media item
5
 *
6
 * @author Sam Stenvall <[email protected]>
7
 * @copyright Copyright &copy; Sam Stenvall 2014-
8
 * @license https://www.gnu.org/licenses/gpl.html The GNU General Public License v3.0
9
 */
10
class ItemLink
11
{
12
13
	/**
14
	 * @var string the item name
15
	 */
16
	public $name;
17
18
	/**
19
	 * @var string the item URL
20
	 */
21
	public $url;
22
23
	/**
24
	 * @var Media the media item it represents
25
	 */
26
	public $media;
27
28
	/**
29
	 * Class constructor
30
	 * @param string $name
31
	 * @param string $url
32
	 * @param Media $media
33
	 */
34
	public function __construct($name, $url, $media)
35
	{
36
		$this->name = $name;
37
		$this->url = $url;
38
		$this->media = $media;
39
	}
40
41
}
42