@@ -132,7 +132,7 @@ |
||
| 132 | 132 | * @since 0.5 |
| 133 | 133 | * |
| 134 | 134 | * @param object $object |
| 135 | - * @return bool|int |
|
| 135 | + * @return integer |
|
| 136 | 136 | * |
| 137 | 137 | * @throws RuntimeException |
| 138 | 138 | */ |
@@ -197,7 +197,7 @@ discard block |
||
| 197 | 197 | * |
| 198 | 198 | * @param string $languageCode |
| 199 | 199 | * |
| 200 | - * @return string|bool |
|
| 200 | + * @return false|string |
|
| 201 | 201 | */ |
| 202 | 202 | public function getDescription( $languageCode ) { |
| 203 | 203 | if ( !$this->getFingerprint()->hasDescription( $languageCode ) ) { |
@@ -215,7 +215,7 @@ discard block |
||
| 215 | 215 | * |
| 216 | 216 | * @param string $languageCode |
| 217 | 217 | * |
| 218 | - * @return string|bool |
|
| 218 | + * @return false|string |
|
| 219 | 219 | */ |
| 220 | 220 | public function getLabel( $languageCode ) { |
| 221 | 221 | if ( !$this->getFingerprint()->hasLabel( $languageCode ) ) { |
@@ -329,7 +329,7 @@ |
||
| 329 | 329 | * |
| 330 | 330 | * @since 0.1 |
| 331 | 331 | * |
| 332 | - * @param mixed $target |
|
| 332 | + * @param Item $target |
|
| 333 | 333 | * |
| 334 | 334 | * @return bool |
| 335 | 335 | */ |
@@ -197,7 +197,7 @@ |
||
| 197 | 197 | * |
| 198 | 198 | * @since 0.1 |
| 199 | 199 | * |
| 200 | - * @param mixed $target |
|
| 200 | + * @param Property $target |
|
| 201 | 201 | * |
| 202 | 202 | * @return bool |
| 203 | 203 | */ |
@@ -381,7 +381,7 @@ |
||
| 381 | 381 | /** |
| 382 | 382 | * @see ArrayObject::append |
| 383 | 383 | * |
| 384 | - * @param mixed $value |
|
| 384 | + * @param Hashable $value |
|
| 385 | 385 | */ |
| 386 | 386 | public function append( $value ) { |
| 387 | 387 | $this->setElement( null, $value ); |
@@ -84,7 +84,7 @@ |
||
| 84 | 84 | /** |
| 85 | 85 | * @see Comparable::equals |
| 86 | 86 | * |
| 87 | - * @param mixed $target |
|
| 87 | + * @param AliasGroup $target |
|
| 88 | 88 | * |
| 89 | 89 | * @return bool |
| 90 | 90 | */ |
@@ -28,6 +28,9 @@ |
||
| 28 | 28 | |
| 29 | 29 | private $guidCounter = 0; |
| 30 | 30 | |
| 31 | + /** |
|
| 32 | + * @param string $guid |
|
| 33 | + */ |
|
| 31 | 34 | private function makeStatement( Snak $mainSnak, $guid = null ) { |
| 32 | 35 | if ( $guid === null ) { |
| 33 | 36 | $this->guidCounter++; |
@@ -51,6 +51,10 @@ |
||
| 51 | 51 | return $statement; |
| 52 | 52 | } |
| 53 | 53 | |
| 54 | + /** |
|
| 55 | + * @param integer $propertyId |
|
| 56 | + * @param string $stringValue |
|
| 57 | + */ |
|
| 54 | 58 | private function getStatementWithSnak( $propertyId, $stringValue ) { |
| 55 | 59 | $snak = $this->newSnak( $propertyId, $stringValue ); |
| 56 | 60 | $statement = new Statement( $snak ); |