Skip to content

Commit 7029507

Browse files
umherirrenderWMDE bot
authored andcommitted
Add function documentation to private functions
Bug: T330644 Depends-On: I2914498869ee8dbee20ca8196ac70b7b70e83b44 Depends-On: I69fb434d5840af45977d0fbc8026faab274e3866 Depends-On: I9db4e5fa87a6d84300c5f9f4e3eddf497ec31739 Change-Id: I1c42b94b1b6683b78b2b4d326bdbecc3353935d3
1 parent 2de8869 commit 7029507

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

src/Entity/ItemId.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ public function __construct( $idSerialization ) {
2626
parent::__construct( strtoupper( $idSerialization ) );
2727
}
2828

29+
/**
30+
* @param string $idSerialization
31+
*/
2932
private function assertValidIdFormat( $idSerialization ) {
3033
if ( !is_string( $idSerialization ) ) {
3134
throw new InvalidArgumentException( '$idSerialization must be a string' );

src/Entity/NumericPropertyId.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ public function __construct( $idSerialization ) {
2222
parent::__construct( strtoupper( $idSerialization ) );
2323
}
2424

25+
/**
26+
* @param string $idSerialization
27+
*/
2528
private function assertValidIdFormat( $idSerialization ) {
2629
if ( !is_string( $idSerialization ) ) {
2730
throw new InvalidArgumentException( '$idSerialization must be a string' );

src/Entity/SerializableEntityId.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ public function __construct( $serialization ) {
2525
$this->serialization = self::normalizeIdSerialization( $serialization );
2626
}
2727

28+
/**
29+
* @param string $serialization
30+
*/
2831
private static function assertValidSerialization( $serialization ) {
2932
if ( !is_string( $serialization ) ) {
3033
throw new InvalidArgumentException( '$serialization must be a string' );

src/Statement/StatementByGuidMap.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ public function hasStatementWithGuid( $statementGuid ) {
6464
return array_key_exists( $statementGuid, $this->statements );
6565
}
6666

67+
/**
68+
* @param string $statementGuid
69+
*/
6770
private function assertIsStatementGuid( $statementGuid ) {
6871
if ( !is_string( $statementGuid ) ) {
6972
throw new InvalidArgumentException( '$statementGuid needs to be a string' );

0 commit comments

Comments
 (0)