1 | <?php |
||
27 | class Theme |
||
28 | { |
||
29 | /** |
||
30 | * Theme Name |
||
31 | * |
||
32 | * @var string |
||
33 | */ |
||
34 | private $themeName; |
||
35 | |||
36 | /** |
||
37 | * Colour Scheme Name |
||
38 | * |
||
39 | * @var string |
||
40 | */ |
||
41 | private $colourSchemeName; |
||
42 | |||
43 | /** |
||
44 | * Colour Map indexed by position |
||
45 | * |
||
46 | * @var array of string |
||
47 | */ |
||
48 | private $colourMapValues; |
||
|
|||
49 | |||
50 | /** |
||
51 | * Colour Map |
||
52 | * |
||
53 | * @var array of string |
||
54 | */ |
||
55 | private $colourMap; |
||
56 | |||
57 | /** |
||
58 | * Create a new Theme |
||
59 | */ |
||
60 | 8 | public function __construct($themeName, $colourSchemeName, $colourMap) |
|
67 | |||
68 | /** |
||
69 | * Get Theme Name |
||
70 | * |
||
71 | * @return string |
||
72 | */ |
||
73 | public function getThemeName() |
||
77 | |||
78 | /** |
||
79 | * Get colour Scheme Name |
||
80 | * |
||
81 | * @return string |
||
82 | */ |
||
83 | public function getColourSchemeName() |
||
87 | |||
88 | /** |
||
89 | * Get colour Map Value by Position |
||
90 | * |
||
91 | * @return string |
||
92 | */ |
||
93 | 3 | public function getColourByIndex($index = 0) |
|
101 | |||
102 | /** |
||
103 | * Implement PHP __clone to create a deep clone, not just a shallow copy. |
||
104 | */ |
||
105 | public function __clone() |
||
116 | } |
||
117 |
This check marks private properties in classes that are never used. Those properties can be removed.