@@ -220,7 +220,7 @@ discard block |
||
220 | 220 | * @param mixed $contentId |
221 | 221 | * @param int $versionNo the version number. If not given the current version is returned. |
222 | 222 | * |
223 | - * @return \eZ\Publish\API\Repository\Values\Content\VersionInfo |
|
223 | + * @return \eZ\Publish\API\Repository\Values\ValueObject |
|
224 | 224 | */ |
225 | 225 | public function loadVersionInfoById($contentId, $versionNo = null) |
226 | 226 | { |
@@ -1397,7 +1397,7 @@ discard block |
||
1397 | 1397 | * |
1398 | 1398 | * @param \eZ\Publish\API\Repository\Values\Content\ContentUpdateStruct $contentUpdateStruct |
1399 | 1399 | * |
1400 | - * @return array |
|
1400 | + * @return string[] |
|
1401 | 1401 | */ |
1402 | 1402 | private function getUpdatedLanguageCodes(APIContentUpdateStruct $contentUpdateStruct) |
1403 | 1403 | { |
@@ -1424,7 +1424,7 @@ discard block |
||
1424 | 1424 | * @param \eZ\Publish\API\Repository\Values\Content\ContentUpdateStruct $contentUpdateStruct |
1425 | 1425 | * @param \eZ\Publish\API\Repository\Values\Content\Content $content |
1426 | 1426 | * |
1427 | - * @return array |
|
1427 | + * @return string[] |
|
1428 | 1428 | */ |
1429 | 1429 | protected function getLanguageCodesForUpdate(APIContentUpdateStruct $contentUpdateStruct, APIContent $content) |
1430 | 1430 | { |
@@ -1553,7 +1553,7 @@ discard block |
||
1553 | 1553 | |
1554 | 1554 | /** |
1555 | 1555 | * @param \eZ\Publish\API\Repository\Values\Content\VersionInfo $versionInfo |
1556 | - * @param array $translations |
|
1556 | + * @param string[] $translations |
|
1557 | 1557 | * |
1558 | 1558 | * @throws \eZ\Publish\API\Repository\Exceptions\BadStateException |
1559 | 1559 | * @throws \eZ\Publish\API\Repository\Exceptions\ContentFieldValidationException |
@@ -349,7 +349,7 @@ |
||
349 | 349 | /** |
350 | 350 | * Remove role from user or user group, by assignment ID. |
351 | 351 | * |
352 | - * @param mixed $roleAssignmentId |
|
352 | + * @param integer $roleAssignmentId |
|
353 | 353 | */ |
354 | 354 | public function removeRoleAssignmentById($roleAssignmentId) |
355 | 355 | { |
@@ -200,7 +200,7 @@ discard block |
||
200 | 200 | /** |
201 | 201 | * Delete user with the given ID. |
202 | 202 | * |
203 | - * @param mixed $userId |
|
203 | + * @param integer $userId |
|
204 | 204 | * |
205 | 205 | * @throws \eZ\Publish\API\Repository\Exceptions\NotImplementedException |
206 | 206 | */ |
@@ -326,7 +326,7 @@ discard block |
||
326 | 326 | /** |
327 | 327 | * Loads a role draft by the original role ID. |
328 | 328 | * |
329 | - * @param mixed $roleId ID of the role the draft was created from. |
|
329 | + * @param integer $roleId ID of the role the draft was created from. |
|
330 | 330 | * |
331 | 331 | * @throws \eZ\Publish\API\Repository\Exceptions\NotFoundException If role is not found |
332 | 332 | * |
@@ -502,7 +502,7 @@ discard block |
||
502 | 502 | /** |
503 | 503 | * Returns the user policies associated with the user (including inherited policies from user groups). |
504 | 504 | * |
505 | - * @param mixed $userId |
|
505 | + * @param integer $userId |
|
506 | 506 | * |
507 | 507 | * @return \eZ\Publish\SPI\Persistence\User\Policy[] |
508 | 508 | */ |
@@ -613,7 +613,7 @@ discard block |
||
613 | 613 | * |
614 | 614 | * Role Assignments with same roleId and limitationIdentifier will be merged together into one. |
615 | 615 | * |
616 | - * @param mixed $groupId In legacy storage engine this is the content object id roles are assigned to in ezuser_role. |
|
616 | + * @param integer $groupId In legacy storage engine this is the content object id roles are assigned to in ezuser_role. |
|
617 | 617 | * By the nature of legacy this can currently also be used to get by $userId. |
618 | 618 | * @param bool $inherit If true also return inherited role assignments from user groups. |
619 | 619 | * |
@@ -1052,7 +1052,7 @@ discard block |
||
1052 | 1052 | * |
1053 | 1053 | * @param \eZ\Publish\API\Repository\Values\User\RoleCreateStruct $roleCreateStruct |
1054 | 1054 | * |
1055 | - * @return \eZ\Publish\Core\FieldType\ValidationError[][][] |
|
1055 | + * @return \eZ\Publish\Core\FieldType\ValidationError[] |
|
1056 | 1056 | * |
1057 | 1057 | * @throws \eZ\Publish\API\Repository\Exceptions\InvalidArgumentException |
1058 | 1058 | */ |
@@ -1084,7 +1084,7 @@ discard block |
||
1084 | 1084 | * @param string $function |
1085 | 1085 | * @param \eZ\Publish\API\Repository\Values\User\Limitation[] $limitations |
1086 | 1086 | * |
1087 | - * @return \eZ\Publish\Core\FieldType\ValidationError[][] |
|
1087 | + * @return \eZ\Publish\Core\FieldType\ValidationError[] |
|
1088 | 1088 | */ |
1089 | 1089 | protected function validatePolicy(string $module, string $function, array $limitations): iterable |
1090 | 1090 | { |
@@ -127,7 +127,7 @@ |
||
127 | 127 | /** |
128 | 128 | * This method returns the content type field definitions from this type. |
129 | 129 | * |
130 | - * @return \eZ\Publish\API\Repository\Values\ContentType\FieldDefinition[] |
|
130 | + * @return APIFieldDefinitionCollection |
|
131 | 131 | */ |
132 | 132 | public function getFieldDefinitions(): APIFieldDefinitionCollection |
133 | 133 | { |
@@ -90,7 +90,7 @@ |
||
90 | 90 | * |
91 | 91 | * Note that $id is identical to original location, which has been previously trashed |
92 | 92 | * |
93 | - * @param mixed $trashItemId |
|
93 | + * @param integer $trashItemId |
|
94 | 94 | * |
95 | 95 | * @throws \eZ\Publish\API\Repository\Exceptions\UnauthorizedException if the user is not allowed to read the trashed location |
96 | 96 | * @throws \eZ\Publish\API\Repository\Exceptions\NotFoundException - if the location with the given id does not exist |
@@ -260,6 +260,9 @@ |
||
260 | 260 | } |
261 | 261 | } |
262 | 262 | |
263 | + /** |
|
264 | + * @param integer $timestamp |
|
265 | + */ |
|
263 | 266 | private function createDateTime(?int $timestamp): ?DateTimeInterface |
264 | 267 | { |
265 | 268 | if ($timestamp > 0) { |
@@ -127,7 +127,7 @@ |
||
127 | 127 | * @param \eZ\Publish\API\Repository\Values\Content\Query\Criterion $criterion |
128 | 128 | * @param array $languageSettings |
129 | 129 | * |
130 | - * @return \eZ\Publish\Core\Persistence\Database\Expression |
|
130 | + * @return string |
|
131 | 131 | * |
132 | 132 | * @throws \eZ\Publish\API\Repository\Exceptions\InvalidArgumentException |
133 | 133 | * @throws \eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Exception\NotFound |
@@ -1082,7 +1082,7 @@ discard block |
||
1082 | 1082 | * @param string $mainLanguageCode |
1083 | 1083 | * @param \eZ\Publish\API\Repository\Values\Content\Field[] $structFields |
1084 | 1084 | * @param \eZ\Publish\API\Repository\Values\ContentType\FieldDefinition[] $fieldDefinitions |
1085 | - * @param array $languageCodes |
|
1085 | + * @param string[] $languageCodes |
|
1086 | 1086 | * |
1087 | 1087 | * @return array |
1088 | 1088 | * |
@@ -1158,10 +1158,9 @@ discard block |
||
1158 | 1158 | * @param \eZ\Publish\SPI\Persistence\Content\Field[] $spiFields |
1159 | 1159 | * @param \eZ\Publish\API\Repository\Values\ContentType\FieldDefinition[] $fieldDefinitions |
1160 | 1160 | * @param \eZ\Publish\API\Repository\Values\Content\LocationCreateStruct[] $locationCreateStructs |
1161 | - * @param \eZ\Publish\SPI\Persistence\Content\ObjectState\Group[] $objectStateGroups |
|
1162 | 1161 | * @param bool $execute |
1163 | 1162 | * |
1164 | - * @return mixed |
|
1163 | + * @return ContentCreateStruct |
|
1165 | 1164 | */ |
1166 | 1165 | protected function assertForTestCreateContentNonRedundantFieldSet( |
1167 | 1166 | $mainLanguageCode, |
@@ -2045,7 +2044,7 @@ discard block |
||
2045 | 2044 | * @param \eZ\Publish\API\Repository\Values\Content\Field[] $structFields |
2046 | 2045 | * @param \eZ\Publish\API\Repository\Values\ContentType\FieldDefinition[] $fieldDefinitions |
2047 | 2046 | * |
2048 | - * @return mixed |
|
2047 | + * @return ContentCreateStruct |
|
2049 | 2048 | */ |
2050 | 2049 | protected function assertForTestCreateContentRequiredField( |
2051 | 2050 | $mainLanguageCode, |
@@ -4873,6 +4872,10 @@ discard block |
||
4873 | 4872 | ); |
4874 | 4873 | } |
4875 | 4874 | |
4875 | + /** |
|
4876 | + * @param Field[] $existingFields |
|
4877 | + * @param FieldDefinition[] $fieldDefinitions |
|
4878 | + */ |
|
4876 | 4879 | public function assertForTestUpdateContentRequiredField( |
4877 | 4880 | $initialLanguageCode, |
4878 | 4881 | $structFields, |
@@ -5081,6 +5084,10 @@ discard block |
||
5081 | 5084 | } |
5082 | 5085 | } |
5083 | 5086 | |
5087 | + /** |
|
5088 | + * @param Field[] $existingFields |
|
5089 | + * @param FieldDefinition[] $fieldDefinitions |
|
5090 | + */ |
|
5084 | 5091 | public function assertForTestUpdateContentThrowsContentFieldValidationException( |
5085 | 5092 | $initialLanguageCode, |
5086 | 5093 | $structFields, |
@@ -5820,7 +5827,7 @@ discard block |
||
5820 | 5827 | * @param array $translations |
5821 | 5828 | * @param bool $useAlwaysAvailable |
5822 | 5829 | * |
5823 | - * @return \PHPUnit\Framework\MockObject\MockObject|\eZ\Publish\API\Repository\Values\Content\Content |
|
5830 | + * @return APIContent |
|
5824 | 5831 | */ |
5825 | 5832 | private function mockBuildContentDomainObject(SPIContent $spiContent, array $translations = null, bool $useAlwaysAvailable = null) |
5826 | 5833 | { |