1 | <?php |
||
5 | class CodeReviewConfig { |
||
|
|||
6 | |||
7 | const T_PLUGINS_ALL = 0; |
||
8 | const T_PLUGINS_ACTIVE = 1; |
||
9 | const T_PLUGINS_INACTIVE = 2; |
||
10 | |||
11 | /** |
||
12 | * @var array |
||
13 | */ |
||
14 | protected $options = array(); |
||
15 | |||
16 | /** |
||
17 | * @param array $options |
||
18 | */ |
||
19 | 3 | public function __construct(array $options = array()) { |
|
22 | |||
23 | /** |
||
24 | * @param $key |
||
25 | * @return mixed |
||
26 | */ |
||
27 | public function __get($key) { |
||
30 | |||
31 | /** |
||
32 | * @param $key |
||
33 | * @param null $default |
||
34 | * @return null |
||
35 | */ |
||
36 | 2 | public function getOption($key, $default = null) { |
|
39 | |||
40 | /** |
||
41 | * @param $key |
||
42 | * @param $value |
||
43 | */ |
||
44 | public function __set($key, $value) { |
||
47 | |||
48 | /** |
||
49 | * @param $type |
||
50 | * @return array |
||
51 | */ |
||
52 | 1 | public function getPluginIds($type) { |
|
84 | |||
85 | /* |
||
86 | * Shorthand methods |
||
87 | */ |
||
88 | |||
89 | /** |
||
90 | * @param array $vars |
||
91 | */ |
||
92 | public function parseInput(array $vars) { |
||
108 | |||
109 | /** |
||
110 | * @return bool |
||
111 | */ |
||
112 | public function isFixProblemsEnabled() { |
||
115 | |||
116 | /** |
||
117 | * @return string |
||
118 | */ |
||
119 | public function getMaxVersion() { |
||
126 | |||
127 | /** |
||
128 | * @return string |
||
129 | */ |
||
130 | public function getSubPath() { |
||
133 | |||
134 | /** |
||
135 | * @return bool |
||
136 | */ |
||
137 | 2 | public function isIncludeDisabledPluginsEnabled() { |
|
140 | |||
141 | /** |
||
142 | * @return bool |
||
143 | */ |
||
144 | 2 | public function isSkipInactivePluginsEnabled() { |
|
147 | |||
148 | /** |
||
149 | * @return bool |
||
150 | */ |
||
151 | public function isDeprecatedFunctionsTestEnabled() { |
||
154 | |||
155 | /** |
||
156 | * @return bool |
||
157 | */ |
||
158 | public function isPrivateFunctionsTestEnabled() { |
||
161 | } |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.