ItemLink::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
c 1
b 0
f 0
nc 1
nop 3
dl 0
loc 5
rs 10
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