@@ -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 | */ |
@@ -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 | */ |
@@ -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 ); |
@@ -30,6 +30,10 @@ |
||
| 30 | 30 | $this->assertTrue( $statements->hasStatementWithGuid( 'some guid' ) ); |
| 31 | 31 | } |
| 32 | 32 | |
| 33 | + /** |
|
| 34 | + * @param integer $propertyId |
|
| 35 | + * @param string|null $guid |
|
| 36 | + */ |
|
| 33 | 37 | private function newStatement( $propertyId, $guid ) { |
| 34 | 38 | $statement = new Statement( new PropertyNoValueSnak( $propertyId ) ); |
| 35 | 39 | $statement->setGuid( $guid ); |
@@ -27,6 +27,9 @@ |
||
| 27 | 27 | $this->serialization = strtoupper( $idSerialization ); |
| 28 | 28 | } |
| 29 | 29 | |
| 30 | + /** |
|
| 31 | + * @param string $idSerialization |
|
| 32 | + */ |
|
| 30 | 33 | private function assertValidIdFormat( $idSerialization ) { |
| 31 | 34 | if ( !is_string( $idSerialization ) ) { |
| 32 | 35 | throw new InvalidArgumentException( '$idSerialization must be a string; got ' . gettype( $idSerialization ) ); |
@@ -27,6 +27,9 @@ |
||
| 27 | 27 | $this->serialization = strtoupper( $idSerialization ); |
| 28 | 28 | } |
| 29 | 29 | |
| 30 | + /** |
|
| 31 | + * @param string $idSerialization |
|
| 32 | + */ |
|
| 30 | 33 | private function assertValidIdFormat( $idSerialization ) { |
| 31 | 34 | if ( !is_string( $idSerialization ) ) { |
| 32 | 35 | throw new InvalidArgumentException( '$idSerialization must be a string; got ' . gettype( $idSerialization ) ); |