@@ -40,9 +40,8 @@ |
||
40 | 40 | /** |
41 | 41 | * @since 0.1 |
42 | 42 | * |
43 | - * @param SMWDIWikiPage $resultPage |
|
43 | + * @param DIWikiPage $resultPage |
|
44 | 44 | * @param PrintRequest $printRequest |
45 | - * @param JsonResponseParser $store |
|
46 | 45 | */ |
47 | 46 | public function __construct( DIWikiPage $resultPage, PrintRequest $printRequest, JsonResponseParser $jsonResponseParser ) { |
48 | 47 | $this->mResult = $resultPage; |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | /** |
45 | 45 | * @since 0.1 |
46 | 46 | * |
47 | - * @return array |
|
47 | + * @return string |
|
48 | 48 | */ |
49 | 49 | public function toArray() { |
50 | 50 | return $this->jsonResponseParser->getRawResponseResult(); |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | /** |
76 | 76 | * @since 0.1 |
77 | 77 | * |
78 | - * @return SMWInfolink |
|
78 | + * @return Infolink |
|
79 | 79 | */ |
80 | 80 | public function getLink() { |
81 | 81 | $params = array( trim( $this->getQuery()->getQueryString() ) ); |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | * @param DIProperty $property |
47 | 47 | * @param array|string $value |
48 | 48 | * |
49 | - * @return DataValue |
|
49 | + * @return DIProperty |
|
50 | 50 | */ |
51 | 51 | public function newDataValueFrom( DIProperty $property, $value ) { |
52 | 52 | |
@@ -110,6 +110,9 @@ discard block |
||
110 | 110 | return $dataItem; |
111 | 111 | } |
112 | 112 | |
113 | + /** |
|
114 | + * @param DIProperty $property |
|
115 | + */ |
|
113 | 116 | private function newDataValueFromPropertyObject( $property, $value ) { |
114 | 117 | |
115 | 118 | try{ |
@@ -121,6 +124,9 @@ discard block |
||
121 | 124 | return $dv; |
122 | 125 | } |
123 | 126 | |
127 | + /** |
|
128 | + * @param DIProperty $property |
|
129 | + */ |
|
124 | 130 | private function newDataValueFromDataItem( $property, $dataItem ) { |
125 | 131 | |
126 | 132 | try{ |
@@ -60,6 +60,9 @@ |
||
60 | 60 | return isset( $this->handlers[$name] ) ? $this->handlers[$name] : false; |
61 | 61 | } |
62 | 62 | |
63 | + /** |
|
64 | + * @param Store $store |
|
65 | + */ |
|
63 | 66 | private function addCallbackHandlers( $store, $options ) { |
64 | 67 | |
65 | 68 | $dynamicInterwikiPrefixLoader = new DynamicInterwikiPrefixLoader( |
@@ -56,6 +56,9 @@ |
||
56 | 56 | $this->doTestRegisteredInterwikiLoadPrefixHandler( $instance ); |
57 | 57 | } |
58 | 58 | |
59 | + /** |
|
60 | + * @param HookRegistry $instance |
|
61 | + */ |
|
59 | 62 | public function doTestRegisteredInterwikiLoadPrefixHandler( $instance ) { |
60 | 63 | |
61 | 64 | $handler = 'InterwikiLoadPrefix'; |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | * |
46 | 46 | * @param HttpRequestFactory $httpRequestFactory |
47 | 47 | * @param QueryResultFactory $queryResultFactory |
48 | - * @param HttpResponseParser $httpResponseParser |
|
48 | + * @param JsonResponseParser $httpResponseParser |
|
49 | 49 | */ |
50 | 50 | public function __construct( HttpRequestFactory $httpRequestFactory, QueryResultFactory $queryResultFactory, JsonResponseParser $httpResponseParser ) { |
51 | 51 | $this->httpRequestFactory = $httpRequestFactory; |
@@ -120,6 +120,9 @@ discard block |
||
120 | 120 | return $queryResult; |
121 | 121 | } |
122 | 122 | |
123 | + /** |
|
124 | + * @param Query $query |
|
125 | + */ |
|
123 | 126 | private function doMakeHttpRequestFor( $query ) { |
124 | 127 | |
125 | 128 | $httpRequest = $this->httpRequestFactory->newCurlRequest(); |