OfficialExtension::getIcon()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
/**
3
 *
4
 * @copyright (c) 2014 phpBB Group
5
 * @license http://opensource.org/licenses/gpl-3.0.php GNU General Public License v3
6
 * @author battye
7
 *
8
 */
9
10
namespace AppBundle\Helper\Extensions;
11
12
// A simple helper class to help us iterate through officially sanctioned extensions
13
class OfficialExtension
14
{
15
	/**
16
	 * Extension Name
17
	 * @var string
18
	 * @access protected
19
	 */
20
	protected $name;
21
22
	/**
23
	 * Extension Description
24
	 * @var string
25
	 * @access protected
26
	 */
27
	protected $description;
28
29
	/**
30
	 * Extra Information for Developers
31
	 * @var string
32
	 * @access protected
33
	 */
34
	protected $descriptionForDevelopers;
35
36
	/**
37
	 * Link to extension cdb page
38
	 * @var string
39
	 * @access protected
40
	 */
41
	protected $contribution;
42
43
	/**
44
	 * Link to extension github repository
45
	 * @var string
46
	 * @access protected
47
	 */
48
	protected $github;
49
50
	/**
51
	 * Extension icon name
52
	 * @var string
53
	 * @access protected
54
	 */
55
	protected $icon;
56
57
	/**
58
	 * Constructor
59
	 *
60
	 * @param string $name					 Extension Name
61
	 * @param string $description			  Extension Description
62
	 * @param string $descriptionForDevelopers Extra Information for Developers
63
	 * @param string $contribution			 Link to extension cdb page
64
	 * @param string $github				   Link to extension github repository
65
	 * @param string $icon					 Extension icon name
66
	 */
67
	public function __construct($name, $description, $descriptionForDevelopers, $contribution, $github, $icon)
68
	{
69
		$this->name = $name;
70
		$this->description = $description;
71
		$this->descriptionForDevelopers = $descriptionForDevelopers;
72
		$this->contribution = $contribution;
73
		$this->github = $github;
74
		$this->icon = $icon;
75
	}
76
77
	/**
78
	 * Get extension name
79
	 *
80
	 * @return string $this->name
81
	 */
82
	public function getName()
83
	{
84
		return $this->name;
85
	}
86
87
	/**
88
	 * Get extension description
89
	 *
90
	 * @return string $this->description
91
	 */
92
	public function getDescription()
93
	{
94
		return $this->description;
95
	}
96
97
	/**
98
	 * Get extra information for developers
99
	 *
100
	 * @return string $this->descriptionForDevelopers
101
	 */
102
	public function getDescriptionForDevelopers()
103
	{
104
		return $this->descriptionForDevelopers;
105
	}
106
107
	/**
108
	 * Get link to extension's cdb page
109
	 *
110
	 * @return string $this->contribution
111
	 */
112
	public function getContribution()
113
	{
114
		return $this->contribution;
115
	}
116
117
	/**
118
	 * Get link to extension's github repository
119
	 *
120
	 * @return string $this->github
121
	 */
122
	public function getGithub()
123
	{
124
		return $this->github;
125
	}
126
127
	/**
128
	 * Get extension icon name
129
	 *
130
	 * @return string $this->icon
131
	 */
132
	public function getIcon()
133
	{
134
		return $this->icon;
135
	}
136
}
137