@@ -42,6 +42,9 @@ discard block |
||
42 | 42 | * @since 2.2 |
43 | 43 | * |
44 | 44 | * @param Store $store |
45 | + * @param \SMW\Tests\Utils\Validators\QueryResultValidator $queryResultValidator |
|
46 | + * @param \SMW\Tests\Utils\Validators\StringValidator $stringValidator |
|
47 | + * @param \SMW\Tests\Utils\Validators\NumberValidator $numberValidator |
|
45 | 48 | */ |
46 | 49 | public function __construct( Store $store, $queryResultValidator, $stringValidator, $numberValidator ) { |
47 | 50 | $this->store = $store; |
@@ -243,6 +246,9 @@ discard block |
||
243 | 246 | ); |
244 | 247 | } |
245 | 248 | |
249 | + /** |
|
250 | + * @param string $about |
|
251 | + */ |
|
246 | 252 | private function printDescriptionToOutput( $about, $description ) { |
247 | 253 | |
248 | 254 | if ( !$this->debug ) { |
@@ -253,6 +259,9 @@ discard block |
||
253 | 259 | print_r( $description ); |
254 | 260 | } |
255 | 261 | |
262 | + /** |
|
263 | + * @param \SMWQueryResult $queryResult |
|
264 | + */ |
|
256 | 265 | private function printQueryResultToOutput( $queryResult ) { |
257 | 266 | |
258 | 267 | if ( is_string( $queryResult ) ) { |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | * |
57 | 57 | * @param DIWikiPage $subject |
58 | 58 | * |
59 | - * @return Iterator |
|
59 | + * @return \SMW\Iterators\MappingIterator |
|
60 | 60 | */ |
61 | 61 | public function newListIteratorFor( DIWikiPage $subject, $skipOn = array() ) { |
62 | 62 | $this->skipOn = $skipOn; |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | * |
71 | 71 | * @since 2.5 |
72 | 72 | * |
73 | - * @return Iterator |
|
73 | + * @return \SMW\Iterators\MappingIterator |
|
74 | 74 | */ |
75 | 75 | public function getIterator() { |
76 | 76 | |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | * |
90 | 90 | * @param DIWikiPage $subject |
91 | 91 | * |
92 | - * @return MappingIterator |
|
92 | + * @return \SMW\Iterators\MappingIterator |
|
93 | 93 | */ |
94 | 94 | private function newMappingIterator( DIWikiPage $subject ) { |
95 | 95 |
@@ -5,7 +5,6 @@ |
||
5 | 5 | use SMW\IteratorFactory; |
6 | 6 | use SMW\DIProperty; |
7 | 7 | use SMW\DIWikiPage; |
8 | -use SMWDataItem as DataItem; |
|
9 | 8 | use SMW\SQLStore\SQLStore; |
10 | 9 | use IteratorAggregate; |
11 | 10 | use RuntimeException; |
@@ -179,7 +179,7 @@ discard block |
||
179 | 179 | /** |
180 | 180 | * @since 2.2 |
181 | 181 | * |
182 | - * @return array |
|
182 | + * @return string[] |
|
183 | 183 | */ |
184 | 184 | public function getErrors() { |
185 | 185 | return $this->errors; |
@@ -258,6 +258,9 @@ discard block |
||
258 | 258 | return $query->queryNumber; |
259 | 259 | } |
260 | 260 | |
261 | + /** |
|
262 | + * @param string $fingerprint |
|
263 | + */ |
|
261 | 264 | private function findDuplicates( $fingerprint ) { |
262 | 265 | |
263 | 266 | if ( $this->errors !== array() || $this->isFilterDuplicates === false ) { |
@@ -6,7 +6,6 @@ |
||
6 | 6 | use OutOfBoundsException; |
7 | 7 | use SMW\Utils\CircularReferenceGuard; |
8 | 8 | use SMW\Query\Language\Description; |
9 | -use SMW\Query\Language\Conjuncton; |
|
10 | 9 | use SMW\Store; |
11 | 10 | use SMW\Message; |
12 | 11 |
@@ -97,6 +97,9 @@ |
||
97 | 97 | // return $this->m_semanticData->getHash(); |
98 | 98 | } |
99 | 99 | |
100 | + /** |
|
101 | + * @param SMWSemanticData $semanticData |
|
102 | + */ |
|
100 | 103 | private function getValueHash( $semanticData ) { |
101 | 104 | |
102 | 105 | $hash = array(); |
@@ -125,6 +125,7 @@ discard block |
||
125 | 125 | |
126 | 126 | /** |
127 | 127 | * @deprecated since 2.0 |
128 | + * @param string $identifier |
|
128 | 129 | */ |
129 | 130 | public function setSemanticData( $identifier ) { |
130 | 131 | $this->setEmptyContainerForId( $identifier ); |
@@ -171,7 +172,7 @@ discard block |
||
171 | 172 | /** |
172 | 173 | * @since 1.9 |
173 | 174 | * |
174 | - * @param DataValue $dataValue |
|
175 | + * @param SMWDataValue $dataValue |
|
175 | 176 | * |
176 | 177 | * @throws SubSemanticDataException |
177 | 178 | */ |
@@ -95,6 +95,7 @@ |
||
95 | 95 | } |
96 | 96 | |
97 | 97 | /** |
98 | + * @param DIProperty $property |
|
98 | 99 | * @return DataItem |
99 | 100 | */ |
100 | 101 | private function doDeserializeDataItem( $property, $data, $value, $semanticData ) { |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | /** |
130 | 130 | * @since 1.9 |
131 | 131 | * |
132 | - * @param ParserParameterProcessor $params |
|
132 | + * @param ParserParameterProcessor $parameters |
|
133 | 133 | * |
134 | 134 | * @return string|null |
135 | 135 | */ |
@@ -229,6 +229,9 @@ discard block |
||
229 | 229 | return array( $parameters, $id ); |
230 | 230 | } |
231 | 231 | |
232 | + /** |
|
233 | + * @param boolean $useFirstElementAsPropertyLabel |
|
234 | + */ |
|
232 | 235 | private function doPrepareParameters( ParserParameterProcessor $parserParameterProcessor, $useFirstElementAsPropertyLabel ) { |
233 | 236 | |
234 | 237 | if ( $parserParameterProcessor->hasParameter( self::PARAM_LINKWITH ) ) { |
@@ -10,7 +10,6 @@ |
||
10 | 10 | use SMW\HashBuilder; |
11 | 11 | use SMW\DataValueFactory; |
12 | 12 | use SMW\DIProperty; |
13 | -use Parser; |
|
14 | 13 | |
15 | 14 | /** |
16 | 15 | * @private This class should not be instantiated directly, please use |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | /** |
139 | 139 | * @since 2.5 |
140 | 140 | * |
141 | - * @param array|string $errorMsg |
|
141 | + * @param array|string $error |
|
142 | 142 | * @param DIProperty|null $property |
143 | 143 | * |
144 | 144 | * @return DIContainer |
@@ -196,6 +196,10 @@ discard block |
||
196 | 196 | return new DIContainer( $containerSemanticData ); |
197 | 197 | } |
198 | 198 | |
199 | + /** |
|
200 | + * @param DIProperty|null $property |
|
201 | + * @param string $error |
|
202 | + */ |
|
199 | 203 | private function addToContainerSemanticData( $containerSemanticData, $property, $error ) { |
200 | 204 | |
201 | 205 | if ( $property !== null ) { |
@@ -211,6 +215,9 @@ discard block |
||
211 | 215 | ); |
212 | 216 | } |
213 | 217 | |
218 | + /** |
|
219 | + * @param string $hash |
|
220 | + */ |
|
214 | 221 | private function newContainerSemanticData( $hash ) { |
215 | 222 | |
216 | 223 | if ( $this->subject === null ) { |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace SMW; |
4 | 4 | |
5 | 5 | use SMWContainerSemanticData as ContainerSemanticData; |
6 | -use SMWDataItem as DataItem; |
|
7 | 6 | use SMWDataValue as DataValue; |
8 | 7 | use SMWDIContainer as DIContainer; |
9 | 8 | use SMWDIBlob as DIBlob; |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | * output, then the Semdata container will at least look as if properly |
96 | 96 | * initialised (though empty). |
97 | 97 | * |
98 | - * @return array |
|
98 | + * @return string[] |
|
99 | 99 | */ |
100 | 100 | public function __sleep() { |
101 | 101 | return array( 'subject', 'subSemanticData' ); |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | /** |
145 | 145 | * @since 2.5 |
146 | 146 | * |
147 | - * @param string $subobjectName|null |
|
147 | + * @param string $subobjectName |
|
148 | 148 | * |
149 | 149 | * @return boolean |
150 | 150 | */ |
@@ -236,6 +236,10 @@ discard block |
||
236 | 236 | } |
237 | 237 | } |
238 | 238 | |
239 | + /** |
|
240 | + * @param SemanticData $semanticData |
|
241 | + * @param string $subobjectName |
|
242 | + */ |
|
239 | 243 | private function appendSubSemanticData( $semanticData, $subobjectName ) { |
240 | 244 | |
241 | 245 | if ( $this->hasSubSemanticData( $subobjectName ) ) { |