@@ -1312,7 +1312,7 @@ discard block |
||
1312 | 1312 | * @param \eZ\Publish\API\Repository\Values\Content\ContentUpdateStruct $contentUpdateStruct |
1313 | 1313 | * @param \eZ\Publish\API\Repository\Values\Content\Content $content |
1314 | 1314 | * |
1315 | - * @return array |
|
1315 | + * @return string[] |
|
1316 | 1316 | */ |
1317 | 1317 | protected function getLanguageCodesForUpdate(APIContentUpdateStruct $contentUpdateStruct, APIContent $content) |
1318 | 1318 | { |
@@ -1439,7 +1439,7 @@ discard block |
||
1439 | 1439 | * @param \eZ\Publish\API\Repository\Values\Content\VersionInfo $versionInfo |
1440 | 1440 | * @param int|null $publicationDate |
1441 | 1441 | * |
1442 | - * @return \eZ\Publish\API\Repository\Values\Content\Content |
|
1442 | + * @return LocationCreateStruct |
|
1443 | 1443 | */ |
1444 | 1444 | protected function internalPublishVersion(APIVersionInfo $versionInfo, $publicationDate = null) |
1445 | 1445 | { |
@@ -951,7 +951,7 @@ discard block |
||
951 | 951 | * @param \eZ\Publish\API\Repository\Values\Content\Field[] $fields |
952 | 952 | * @param string $mainLanguageCode |
953 | 953 | * |
954 | - * @return array an array of language code strings |
|
954 | + * @return string[] an array of language code strings |
|
955 | 955 | */ |
956 | 956 | protected function getLanguageCodesFromFields(array $fields, $mainLanguageCode) |
957 | 957 | { |
@@ -2298,6 +2298,11 @@ discard block |
||
2298 | 2298 | $this->assertRelations($relations, $contentDraft->contentInfo, $mediaContentInfo); |
2299 | 2299 | } |
2300 | 2300 | |
2301 | + /** |
|
2302 | + * @param Relation[] $relations |
|
2303 | + * @param \eZ\Publish\API\Repository\Values\Content\ContentInfo $sourceContentInfo |
|
2304 | + * @param \eZ\Publish\API\Repository\Values\Content\ContentInfo $destinationContentInfo |
|
2305 | + */ |
|
2301 | 2306 | protected function assertRelations($relations, $sourceContentInfo, $destinationContentInfo) |
2302 | 2307 | { |
2303 | 2308 | self::assertInternalType('array', $relations); |