@@ -119,8 +119,8 @@ |
||
| 119 | 119 | * for quantity values, the difference is the numerical difference between the quantities, |
| 120 | 120 | * after attempting normalization of each side. |
| 121 | 121 | * |
| 122 | - * @param TimeValue|QuantityValue|UnboundedQuantityValue $minuend |
|
| 123 | - * @param TimeValue|QuantityValue|UnboundedQuantityValue $subtrahend |
|
| 122 | + * @param DataValue $minuend |
|
| 123 | + * @param DataValue $subtrahend |
|
| 124 | 124 | * |
| 125 | 125 | * @throws InvalidArgumentException if the values do not both have the same, supported data value type |
| 126 | 126 | * @return UnboundedQuantityValue |
@@ -16,6 +16,9 @@ |
||
| 16 | 16 | */ |
| 17 | 17 | class ViolationMessageSerializer implements Serializer { |
| 18 | 18 | |
| 19 | + /** |
|
| 20 | + * @param string $fullMessageKey |
|
| 21 | + */ |
|
| 19 | 22 | private function abbreviateViolationMessageKey( $fullMessageKey ) { |
| 20 | 23 | return substr( $fullMessageKey, strlen( ViolationMessage::MESSAGE_KEY_PREFIX ) ); |
| 21 | 24 | } |
@@ -310,7 +310,7 @@ discard block |
||
| 310 | 310 | } |
| 311 | 311 | |
| 312 | 312 | /** |
| 313 | - * @param EntityDocument|StatementListProvider $entity |
|
| 313 | + * @param EntityDocument $entity |
|
| 314 | 314 | * @param string[]|null $constraintIds list of constraints to check (if null: all constraints) |
| 315 | 315 | * @param callable|null $defaultResultsPerContext optional function to pre-populate the check results |
| 316 | 316 | * |
@@ -338,7 +338,7 @@ discard block |
||
| 338 | 338 | } |
| 339 | 339 | |
| 340 | 340 | /** |
| 341 | - * @param EntityDocument|StatementListProvider $entity |
|
| 341 | + * @param EntityDocument $entity |
|
| 342 | 342 | * @param Statement $statement |
| 343 | 343 | * @param string[]|null $constraintIds list of constraints to check (if null: all constraints) |
| 344 | 344 | * @param callable|null $defaultResultsPerContext optional function to pre-populate the check results |
@@ -352,7 +352,6 @@ discard block |
||
| 352 | 352 | } |
| 353 | 353 | |
| 354 | 354 | /** |
| 355 | - * @param string[] $text Context::TYPE_* constants |
|
| 356 | 355 | * @param string|null $role one of the Role::* constants |
| 357 | 356 | * @return array[] list of parameters as accepted by Message::params() |
| 358 | 357 | */ |
@@ -387,7 +386,6 @@ discard block |
||
| 387 | 386 | } |
| 388 | 387 | |
| 389 | 388 | /** |
| 390 | - * @param string[] $text Context::TYPE_* constants |
|
| 391 | 389 | * @param string|null $role one of the Role::* constants |
| 392 | 390 | * @return array[] list of parameters as accepted by Message::params() |
| 393 | 391 | */ |