@@ -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 |
@@ -65,6 +65,7 @@ discard block |
||
65 | 65 | * and return it along with the associated log level. |
66 | 66 | * |
67 | 67 | * @param float $durationSeconds |
68 | + * @param double[] $limits |
|
68 | 69 | * @return array [ $limitSeconds, $logLevel ] |
69 | 70 | */ |
70 | 71 | private function findLimit( $limits, $durationSeconds ) { |
@@ -174,6 +175,7 @@ discard block |
||
174 | 175 | * @param EntityId $entityId |
175 | 176 | * @param CheckResult[] $checkResults |
176 | 177 | * @param float $durationSeconds |
178 | + * @param string $method |
|
177 | 179 | */ |
178 | 180 | public function logConstraintCheckOnEntity( |
179 | 181 | EntityId $entityId, |