@@ -1345,7 +1345,7 @@ discard block |
||
1345 | 1345 | * |
1346 | 1346 | * @param \eZ\Publish\API\Repository\Values\Content\ContentUpdateStruct $contentUpdateStruct |
1347 | 1347 | * |
1348 | - * @return array |
|
1348 | + * @return string[] |
|
1349 | 1349 | */ |
1350 | 1350 | private function getUpdatedLanguageCodes(APIContentUpdateStruct $contentUpdateStruct) |
1351 | 1351 | { |
@@ -1372,7 +1372,7 @@ discard block |
||
1372 | 1372 | * @param \eZ\Publish\API\Repository\Values\Content\ContentUpdateStruct $contentUpdateStruct |
1373 | 1373 | * @param \eZ\Publish\API\Repository\Values\Content\Content $content |
1374 | 1374 | * |
1375 | - * @return array |
|
1375 | + * @return string[] |
|
1376 | 1376 | */ |
1377 | 1377 | protected function getLanguageCodesForUpdate(APIContentUpdateStruct $contentUpdateStruct, APIContent $content) |
1378 | 1378 | { |
@@ -1491,7 +1491,7 @@ discard block |
||
1491 | 1491 | * @param \eZ\Publish\API\Repository\Values\Content\VersionInfo $versionInfo |
1492 | 1492 | * @param int|null $publicationDate If null existing date is kept if there is one, otherwise current time is used. |
1493 | 1493 | * |
1494 | - * @return \eZ\Publish\API\Repository\Values\Content\Content |
|
1494 | + * @return LocationCreateStruct |
|
1495 | 1495 | */ |
1496 | 1496 | protected function internalPublishVersion(APIVersionInfo $versionInfo, $publicationDate = null) |
1497 | 1497 | { |
@@ -677,7 +677,7 @@ discard block |
||
677 | 677 | * |
678 | 678 | * @deprecated Since platform 1.0. Forwards the request to the new /views location, but returns a 301. |
679 | 679 | * |
680 | - * @return \eZ\Publish\Core\REST\Server\Values\RestExecutedView |
|
680 | + * @return \Symfony\Component\HttpFoundation\Response |
|
681 | 681 | */ |
682 | 682 | public function createView() |
683 | 683 | { |
@@ -706,7 +706,7 @@ discard block |
||
706 | 706 | /** |
707 | 707 | * @param \Symfony\Component\HttpFoundation\Request $request |
708 | 708 | * |
709 | - * @return mixed |
|
709 | + * @return \eZ\Publish\API\Repository\Values\ValueObject |
|
710 | 710 | */ |
711 | 711 | protected function parseContentRequest(Request $request) |
712 | 712 | { |
@@ -85,6 +85,10 @@ |
||
85 | 85 | return new URLService($innerService, $dispatcher); |
86 | 86 | } |
87 | 87 | |
88 | + /** |
|
89 | + * @param integer $id |
|
90 | + * @param string $url |
|
91 | + */ |
|
88 | 92 | private function getApiUrl($id = null, $url = null, $isValid = false) |
89 | 93 | { |
90 | 94 | return new URL([ |
@@ -24,7 +24,7 @@ |
||
24 | 24 | * |
25 | 25 | * @param \eZ\Publish\Core\REST\Common\Output\Visitor $visitor |
26 | 26 | * @param \eZ\Publish\Core\REST\Common\Output\Generator $generator |
27 | - * @param Policy|PolicyDraft $data |
|
27 | + * @param PolicyValue $data |
|
28 | 28 | */ |
29 | 29 | public function visit(Visitor $visitor, Generator $generator, $data) |
30 | 30 | { |