1 | <?php |
||
21 | class DIConcept extends \SMWDataItem { |
||
22 | |||
23 | /** |
||
24 | * Query string for this concept. Possibly long. |
||
25 | * @var string |
||
26 | */ |
||
27 | protected $m_concept; |
||
28 | /** |
||
29 | * Documentation for this concept. Possibly long. |
||
30 | * @var string |
||
31 | */ |
||
32 | protected $m_docu; |
||
33 | /** |
||
34 | * Flags of query features. |
||
35 | * @var integer |
||
36 | */ |
||
37 | protected $m_features; |
||
38 | /** |
||
39 | * Size of the query. |
||
40 | * @var integer |
||
41 | */ |
||
42 | protected $m_size; |
||
43 | /** |
||
44 | * Depth of the query. |
||
45 | * @var integer |
||
46 | */ |
||
47 | protected $m_depth; |
||
48 | |||
49 | /** |
||
50 | * Status |
||
51 | * @var integer |
||
52 | */ |
||
53 | protected $cacheStatus; |
||
54 | |||
55 | /** |
||
56 | * Date |
||
57 | * @var integer |
||
58 | */ |
||
59 | protected $cacheDate; |
||
60 | |||
61 | /** |
||
62 | * Count |
||
63 | * @var integer |
||
64 | */ |
||
65 | protected $cacheCount; |
||
66 | |||
67 | /** |
||
68 | * @param string $concept the concept query string |
||
69 | * @param string $docu user documentation |
||
70 | * @param integer $queryefeatures flags about query features |
||
|
|||
71 | * @param integer $size concept query size |
||
72 | * @param integer $depth concept query depth |
||
73 | */ |
||
74 | 9 | public function __construct( $concept, $docu, $queryfeatures, $size, $depth ) { |
|
81 | |||
82 | 7 | public function getDIType() { |
|
85 | |||
86 | 6 | public function getConceptQuery() { |
|
89 | |||
90 | 6 | public function getDocumentation() { |
|
93 | |||
94 | 6 | public function getQueryFeatures() { |
|
97 | |||
98 | 6 | public function getSize() { |
|
101 | |||
102 | 6 | public function getDepth() { |
|
105 | |||
106 | public function getSortKey() { |
||
109 | |||
110 | 8 | public function getSerialization() { |
|
113 | |||
114 | /** |
||
115 | * Sets cache status |
||
116 | * |
||
117 | * @since 1.9 |
||
118 | * |
||
119 | * @param string |
||
120 | */ |
||
121 | 7 | public function setCacheStatus( $status ) { |
|
124 | |||
125 | /** |
||
126 | * Sets cache date |
||
127 | * |
||
128 | * @since 1.9 |
||
129 | * |
||
130 | * @param string |
||
131 | */ |
||
132 | 7 | public function setCacheDate( $date ) { |
|
135 | |||
136 | /** |
||
137 | * Sets cache count |
||
138 | * |
||
139 | * @since 1.9 |
||
140 | * |
||
141 | * @param int |
||
142 | */ |
||
143 | 7 | public function setCacheCount( $count ) { |
|
146 | |||
147 | /** |
||
148 | * Returns cache status |
||
149 | * |
||
150 | * @since 1.9 |
||
151 | * |
||
152 | * @return string |
||
153 | */ |
||
154 | 3 | public function getCacheStatus() { |
|
157 | |||
158 | /** |
||
159 | * Returns cache date |
||
160 | * |
||
161 | * @since 1.9 |
||
162 | * |
||
163 | * @return string |
||
164 | */ |
||
165 | 3 | public function getCacheDate() { |
|
168 | |||
169 | /** |
||
170 | * Returns cache count |
||
171 | * |
||
172 | * @since 1.9 |
||
173 | * |
||
174 | * @return int |
||
175 | */ |
||
176 | 6 | public function getCacheCount() { |
|
179 | |||
180 | /** |
||
181 | * Create a data item from the provided serialization string and type |
||
182 | * ID. |
||
183 | * @return DIConcept |
||
184 | */ |
||
185 | 1 | public static function doUnserialize( $serialization ) { |
|
192 | |||
193 | 2 | public function equals( SMWDataItem $di ) { |
|
199 | |||
200 | } |
||
201 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function. It has, however, found a similar but not annotated parameter which might be a good fit.
Consider the following example. The parameter
$ireland
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was changed, but the annotation was not.