@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | * Inserts a new content object. |
35 | 35 | * |
36 | 36 | * @param \eZ\Publish\SPI\Persistence\Content\CreateStruct $struct |
37 | - * @param mixed $currentVersionNo |
|
37 | + * @param integer $currentVersionNo |
|
38 | 38 | * |
39 | 39 | * @return int ID |
40 | 40 | */ |
@@ -331,8 +331,6 @@ discard block |
||
331 | 331 | * Loads data of related to/from $contentId. |
332 | 332 | * |
333 | 333 | * @param int $contentId |
334 | - * @param bool $reverse Reverse relation, default false |
|
335 | - * @param int $contentVersionNo |
|
336 | 334 | * @param int $relationType |
337 | 335 | * |
338 | 336 | * @return mixed[][] Content data, array structured like {@see \eZ\Publish\Core\Persistence\Legacy\Content\Gateway::load()} |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | * Inserts a new content object. |
66 | 66 | * |
67 | 67 | * @param \eZ\Publish\SPI\Persistence\Content\CreateStruct $struct |
68 | - * @param mixed $currentVersionNo |
|
68 | + * @param integer $currentVersionNo |
|
69 | 69 | * |
70 | 70 | * @return int ID |
71 | 71 | */ |
@@ -618,8 +618,6 @@ discard block |
||
618 | 618 | * Loads data of related to/from $contentId. |
619 | 619 | * |
620 | 620 | * @param int $contentId |
621 | - * @param bool $reverse Reverse relation, default false |
|
622 | - * @param int $contentVersionNo |
|
623 | 621 | * @param int $relationType |
624 | 622 | * |
625 | 623 | * @return mixed[][] Content data, array structured like {@see \eZ\Publish\Core\Persistence\Legacy\Content\Gateway::load()} |
@@ -658,7 +656,6 @@ discard block |
||
658 | 656 | /** |
659 | 657 | * Inserts a new relation database record. |
660 | 658 | * |
661 | - * @param \eZ\Publish\SPI\Persistence\Content\Relation\CreateStruct $createStruct |
|
662 | 659 | * |
663 | 660 | * @return int ID the inserted ID |
664 | 661 | */ |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | * Will contain always a complete list of fields. |
141 | 141 | * |
142 | 142 | * @param \eZ\Publish\SPI\Persistence\Content\CreateStruct $struct Content creation struct. |
143 | - * @param mixed $versionNo Used by self::copy() to maintain version numbers |
|
143 | + * @param integer $versionNo Used by self::copy() to maintain version numbers |
|
144 | 144 | * |
145 | 145 | * @return \eZ\Publish\SPI\Persistence\Content Content value object |
146 | 146 | */ |
@@ -356,7 +356,7 @@ discard block |
||
356 | 356 | /** |
357 | 357 | * Returns the metadata object for a content identified by $remoteId. |
358 | 358 | * |
359 | - * @param mixed $remoteId |
|
359 | + * @param string $remoteId |
|
360 | 360 | * |
361 | 361 | * @return \eZ\Publish\SPI\Persistence\Content\ContentInfo |
362 | 362 | */ |
@@ -372,7 +372,7 @@ discard block |
||
372 | 372 | * |
373 | 373 | * @throws \eZ\Publish\API\Repository\Exceptions\NotFoundException If version is not found |
374 | 374 | * |
375 | - * @param int|string $contentId |
|
375 | + * @param integer $contentId |
|
376 | 376 | * @param int $versionNo Version number to load |
377 | 377 | * |
378 | 378 | * @return \eZ\Publish\SPI\Persistence\Content\VersionInfo |
@@ -524,7 +524,7 @@ discard block |
||
524 | 524 | * |
525 | 525 | * @param int $contentId |
526 | 526 | * |
527 | - * @return bool |
|
527 | + * @return boolean|null |
|
528 | 528 | */ |
529 | 529 | public function deleteContent($contentId) |
530 | 530 | { |
@@ -556,7 +556,7 @@ discard block |
||
556 | 556 | * @param int $contentId |
557 | 557 | * @param int $versionNo |
558 | 558 | * |
559 | - * @return bool |
|
559 | + * @return boolean|null |
|
560 | 560 | */ |
561 | 561 | public function deleteVersion($contentId, $versionNo) |
562 | 562 | { |
@@ -677,7 +677,7 @@ discard block |
||
677 | 677 | * |
678 | 678 | * @todo Should the existence verifications happen here or is this supposed to be handled at a higher level? |
679 | 679 | * |
680 | - * @param mixed $relationId |
|
680 | + * @param integer $relationId |
|
681 | 681 | * @param int $type {@see \eZ\Publish\API\Repository\Values\Content\Relation::COMMON, |
682 | 682 | * \eZ\Publish\API\Repository\Values\Content\Relation::EMBED, |
683 | 683 | * \eZ\Publish\API\Repository\Values\Content\Relation::LINK, |
@@ -691,7 +691,7 @@ discard block |
||
691 | 691 | /** |
692 | 692 | * Loads relations from $sourceContentId. Optionally, loads only those with $type and $sourceContentVersionNo. |
693 | 693 | * |
694 | - * @param mixed $sourceContentId Source Content ID |
|
694 | + * @param integer $sourceContentId Source Content ID |
|
695 | 695 | * @param mixed|null $sourceContentVersionNo Source Content Version, null if not specified |
696 | 696 | * @param int|null $type {@see \eZ\Publish\API\Repository\Values\Content\Relation::COMMON, |
697 | 697 | * \eZ\Publish\API\Repository\Values\Content\Relation::EMBED, |
@@ -712,7 +712,7 @@ discard block |
||
712 | 712 | * |
713 | 713 | * Only loads relations against published versions. |
714 | 714 | * |
715 | - * @param mixed $destinationContentId Destination Content ID |
|
715 | + * @param integer $destinationContentId Destination Content ID |
|
716 | 716 | * @param int|null $type {@see \eZ\Publish\API\Repository\Values\Content\Relation::COMMON, |
717 | 717 | * \eZ\Publish\API\Repository\Values\Content\Relation::EMBED, |
718 | 718 | * \eZ\Publish\API\Repository\Values\Content\Relation::LINK, |
@@ -1438,7 +1438,7 @@ discard block |
||
1438 | 1438 | * |
1439 | 1439 | * @param string[] $methods |
1440 | 1440 | * |
1441 | - * @return \eZ\Publish\Core\Persistence\Legacy\Content\Handler |
|
1441 | + * @return \PHPUnit\Framework\MockObject\MockObject |
|
1442 | 1442 | */ |
1443 | 1443 | protected function getPartlyMockedHandler(array $methods) |
1444 | 1444 | { |
@@ -1462,7 +1462,7 @@ discard block |
||
1462 | 1462 | /** |
1463 | 1463 | * Returns a TreeHandler mock. |
1464 | 1464 | * |
1465 | - * @return \PHPUnit\Framework\MockObject\MockObject|\eZ\Publish\Core\Persistence\Legacy\Content\TreeHandler |
|
1465 | + * @return TreeHandler |
|
1466 | 1466 | */ |
1467 | 1467 | protected function getTreeHandlerMock() |
1468 | 1468 | { |
@@ -117,9 +117,9 @@ discard block |
||
117 | 117 | * Inserts a new content object. |
118 | 118 | * |
119 | 119 | * @param \eZ\Publish\SPI\Persistence\Content\CreateStruct $struct |
120 | - * @param mixed $currentVersionNo |
|
120 | + * @param integer $currentVersionNo |
|
121 | 121 | * |
122 | - * @return int ID |
|
122 | + * @return string ID |
|
123 | 123 | */ |
124 | 124 | public function insertContentObject(CreateStruct $struct, $currentVersionNo = 1) |
125 | 125 | { |
@@ -221,7 +221,7 @@ discard block |
||
221 | 221 | * @param \eZ\Publish\SPI\Persistence\Content\VersionInfo $versionInfo |
222 | 222 | * @param \eZ\Publish\SPI\Persistence\Content\Field[] $fields |
223 | 223 | * |
224 | - * @return int ID |
|
224 | + * @return string ID |
|
225 | 225 | */ |
226 | 226 | public function insertVersion(VersionInfo $versionInfo, array $fields) |
227 | 227 | { |
@@ -615,7 +615,7 @@ discard block |
||
615 | 615 | * @param \eZ\Publish\SPI\Persistence\Content\Field $field |
616 | 616 | * @param \eZ\Publish\Core\Persistence\Legacy\Content\StorageFieldValue $value |
617 | 617 | * |
618 | - * @return int ID |
|
618 | + * @return string ID |
|
619 | 619 | */ |
620 | 620 | public function insertNewField(Content $content, Field $field, StorageFieldValue $value) |
621 | 621 | { |
@@ -1094,7 +1094,7 @@ discard block |
||
1094 | 1094 | * |
1095 | 1095 | * Result is returned with oldest version first (using version id as it has index and is auto increment). |
1096 | 1096 | * |
1097 | - * @param mixed $contentId |
|
1097 | + * @param integer $contentId |
|
1098 | 1098 | * @param mixed|null $status Optional argument to filter versions by status, like {@see VersionInfo::STATUS_ARCHIVED}. |
1099 | 1099 | * @param int $limit Limit for items returned, -1 means none. |
1100 | 1100 | * |
@@ -1162,7 +1162,7 @@ discard block |
||
1162 | 1162 | /** |
1163 | 1163 | * Returns all version numbers for the given $contentId. |
1164 | 1164 | * |
1165 | - * @param mixed $contentId |
|
1165 | + * @param integer $contentId |
|
1166 | 1166 | * |
1167 | 1167 | * @return int[] |
1168 | 1168 | */ |
@@ -1860,7 +1860,7 @@ discard block |
||
1860 | 1860 | * |
1861 | 1861 | * @param \eZ\Publish\SPI\Persistence\Content\Relation\CreateStruct $createStruct |
1862 | 1862 | * |
1863 | - * @return int ID the inserted ID |
|
1863 | + * @return string ID the inserted ID |
|
1864 | 1864 | */ |
1865 | 1865 | public function insertRelation(RelationCreateStruct $createStruct) |
1866 | 1866 | { |