@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | * @since 1.0 |
| 51 | 51 | * |
| 52 | 52 | * @param SemanticData $semanticData |
| 53 | - * @param Factory $factory |
|
| 53 | + * @param Factory $appFactory |
|
| 54 | 54 | * @param array $configuration |
| 55 | 55 | */ |
| 56 | 56 | public function __construct( SemanticData $semanticData, AppFactory $appFactory, array $configuration ) { |
@@ -129,11 +129,17 @@ discard block |
||
| 129 | 129 | return true; |
| 130 | 130 | } |
| 131 | 131 | |
| 132 | + /** |
|
| 133 | + * @param string|null $propertyId |
|
| 134 | + */ |
|
| 132 | 135 | protected function hasRegisteredPropertyId( $propertyId, $cachedProperties ) { |
| 133 | 136 | return ( DIProperty::getPredefinedPropertyTypeId( $propertyId ) === '' ) || |
| 134 | 137 | array_key_exists( $propertyId, $cachedProperties ); |
| 135 | 138 | } |
| 136 | 139 | |
| 140 | + /** |
|
| 141 | + * @param DIProperty $property |
|
| 142 | + */ |
|
| 137 | 143 | protected function createDataItemById( $externalId, $property ) { |
| 138 | 144 | |
| 139 | 145 | $dataItem = null; |
@@ -139,6 +139,9 @@ |
||
| 139 | 139 | return $this->getTextMessage( $key, $arguments ); |
| 140 | 140 | } |
| 141 | 141 | |
| 142 | + /** |
|
| 143 | + * @param string $key |
|
| 144 | + */ |
|
| 142 | 145 | protected function getTextMessage( $key, $arguments ) { |
| 143 | 146 | |
| 144 | 147 | $this->messages[ $key ] = wfMessage( $arguments )->inLanguage( $this->language )->text(); |
@@ -178,6 +178,9 @@ discard block |
||
| 178 | 178 | return false; |
| 179 | 179 | } |
| 180 | 180 | |
| 181 | + /** |
|
| 182 | + * @return boolean |
|
| 183 | + */ |
|
| 181 | 184 | protected function getPropertyVisibility( $id ) { |
| 182 | 185 | |
| 183 | 186 | $show = $this->lookupWithIndexForId( 'show', $id ); |
@@ -204,6 +207,11 @@ discard block |
||
| 204 | 207 | return null; |
| 205 | 208 | } |
| 206 | 209 | |
| 210 | + /** |
|
| 211 | + * @param string $index |
|
| 212 | + * |
|
| 213 | + * @return string |
|
| 214 | + */ |
|
| 207 | 215 | protected function lookupWithIndexForId( $index, $id ) { |
| 208 | 216 | |
| 209 | 217 | $id = strtoupper( $id ); |