@@ -416,7 +416,7 @@ discard block |
||
| 416 | 416 | /** |
| 417 | 417 | * For given $languageIds returns array with language codes as keys. |
| 418 | 418 | * |
| 419 | - * @param array $languageIds |
|
| 419 | + * @param integer[] $languageIds |
|
| 420 | 420 | * |
| 421 | 421 | * @return array |
| 422 | 422 | */ |
@@ -436,7 +436,7 @@ discard block |
||
| 436 | 436 | * @param \eZ\Publish\SPI\Persistence\Content\Field[] $fields |
| 437 | 437 | * @param array $languageCodes |
| 438 | 438 | * |
| 439 | - * @return \eZ\Publish\SPI\Persistence\Content\Field[][] |
|
| 439 | + * @return Content |
|
| 440 | 440 | */ |
| 441 | 441 | protected function getFieldMap(array $fields, &$languageCodes = null) |
| 442 | 442 | { |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | * |
| 29 | 29 | * @note Class should instead be configured as service if it gains dependencies. |
| 30 | 30 | * |
| 31 | - * @return Float |
|
| 31 | + * @return FloatConverter |
|
| 32 | 32 | */ |
| 33 | 33 | public static function create() |
| 34 | 34 | { |
@@ -67,7 +67,7 @@ |
||
| 67 | 67 | * "sort_key_int" or "sort_key_string". This column is then used for |
| 68 | 68 | * filtering and sorting for this type. |
| 69 | 69 | * |
| 70 | - * @return string |
|
| 70 | + * @return boolean |
|
| 71 | 71 | */ |
| 72 | 72 | public function getIndexColumn() |
| 73 | 73 | { |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | * "sort_key_int" or "sort_key_string". This column is then used for |
| 84 | 84 | * filtering and sorting for this type. |
| 85 | 85 | * |
| 86 | - * @return string |
|
| 86 | + * @return boolean |
|
| 87 | 87 | */ |
| 88 | 88 | public function getIndexColumn() |
| 89 | 89 | { |
@@ -251,7 +251,7 @@ discard block |
||
| 251 | 251 | * @param \eZ\Publish\Core\FieldType\Page\Parts\Item $item |
| 252 | 252 | * @param \DOMDocument $dom |
| 253 | 253 | * |
| 254 | - * @return bool|\DOMElement |
|
| 254 | + * @return DOMElement |
|
| 255 | 255 | */ |
| 256 | 256 | protected function generateItemXmlString(Parts\Item $item, DOMDocument $dom) |
| 257 | 257 | { |
@@ -232,7 +232,7 @@ |
||
| 232 | 232 | * "sort_key_int" or "sort_key_string". This column is then used for |
| 233 | 233 | * filtering and sorting for this type. |
| 234 | 234 | * |
| 235 | - * @return bool |
|
| 235 | + * @return string |
|
| 236 | 236 | */ |
| 237 | 237 | public function getIndexColumn() |
| 238 | 238 | { |
@@ -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()} |
@@ -103,9 +103,9 @@ discard block |
||
| 103 | 103 | * Inserts a new content object. |
| 104 | 104 | * |
| 105 | 105 | * @param \eZ\Publish\SPI\Persistence\Content\CreateStruct $struct |
| 106 | - * @param mixed $currentVersionNo |
|
| 106 | + * @param integer $currentVersionNo |
|
| 107 | 107 | * |
| 108 | - * @return int ID |
|
| 108 | + * @return string ID |
|
| 109 | 109 | */ |
| 110 | 110 | public function insertContentObject(CreateStruct $struct, $currentVersionNo = 1) |
| 111 | 111 | { |
@@ -205,7 +205,7 @@ discard block |
||
| 205 | 205 | * @param \eZ\Publish\SPI\Persistence\Content\VersionInfo $versionInfo |
| 206 | 206 | * @param \eZ\Publish\SPI\Persistence\Content\Field[] $fields |
| 207 | 207 | * |
| 208 | - * @return int ID |
|
| 208 | + * @return string ID |
|
| 209 | 209 | */ |
| 210 | 210 | public function insertVersion(VersionInfo $versionInfo, array $fields) |
| 211 | 211 | { |
@@ -599,7 +599,7 @@ discard block |
||
| 599 | 599 | * @param \eZ\Publish\SPI\Persistence\Content\Field $field |
| 600 | 600 | * @param \eZ\Publish\Core\Persistence\Legacy\Content\StorageFieldValue $value |
| 601 | 601 | * |
| 602 | - * @return int ID |
|
| 602 | + * @return string ID |
|
| 603 | 603 | */ |
| 604 | 604 | public function insertNewField(Content $content, Field $field, StorageFieldValue $value) |
| 605 | 605 | { |
@@ -809,8 +809,8 @@ discard block |
||
| 809 | 809 | * |
| 810 | 810 | * Returns an array with the relevant data. |
| 811 | 811 | * |
| 812 | - * @param mixed $contentId |
|
| 813 | - * @param mixed $version |
|
| 812 | + * @param integer $contentId |
|
| 813 | + * @param integer $version |
|
| 814 | 814 | * @param string[] $translations |
| 815 | 815 | * |
| 816 | 816 | * @return array |
@@ -979,7 +979,7 @@ discard block |
||
| 979 | 979 | /** |
| 980 | 980 | * Returns all version data for the given $contentId. |
| 981 | 981 | * |
| 982 | - * @param mixed $contentId |
|
| 982 | + * @param integer $contentId |
|
| 983 | 983 | * |
| 984 | 984 | * @return string[][] |
| 985 | 985 | */ |
@@ -1030,7 +1030,7 @@ discard block |
||
| 1030 | 1030 | /** |
| 1031 | 1031 | * Returns all version numbers for the given $contentId. |
| 1032 | 1032 | * |
| 1033 | - * @param mixed $contentId |
|
| 1033 | + * @param integer $contentId |
|
| 1034 | 1034 | * |
| 1035 | 1035 | * @return int[] |
| 1036 | 1036 | */ |
@@ -1668,7 +1668,7 @@ discard block |
||
| 1668 | 1668 | * |
| 1669 | 1669 | * @param \eZ\Publish\SPI\Persistence\Content\Relation\CreateStruct $createStruct |
| 1670 | 1670 | * |
| 1671 | - * @return int ID the inserted ID |
|
| 1671 | + * @return string ID the inserted ID |
|
| 1672 | 1672 | */ |
| 1673 | 1673 | public function insertRelation(RelationCreateStruct $createStruct) |
| 1674 | 1674 | { |
@@ -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 | */ |
@@ -142,7 +142,7 @@ discard block |
||
| 142 | 142 | * Will contain always a complete list of fields. |
| 143 | 143 | * |
| 144 | 144 | * @param \eZ\Publish\SPI\Persistence\Content\CreateStruct $struct Content creation struct. |
| 145 | - * @param mixed $versionNo Used by self::copy() to maintain version numbers |
|
| 145 | + * @param integer $versionNo Used by self::copy() to maintain version numbers |
|
| 146 | 146 | * |
| 147 | 147 | * @return \eZ\Publish\SPI\Persistence\Content Content value object |
| 148 | 148 | */ |
@@ -240,9 +240,9 @@ discard block |
||
| 240 | 240 | * also be an entry in the `eznode_assignment` created for the draft. This |
| 241 | 241 | * is ignored in this implementation. |
| 242 | 242 | * |
| 243 | - * @param mixed $contentId |
|
| 244 | - * @param mixed $srcVersion |
|
| 245 | - * @param mixed $userId |
|
| 243 | + * @param integer $contentId |
|
| 244 | + * @param integer $srcVersion |
|
| 245 | + * @param integer $userId |
|
| 246 | 246 | * |
| 247 | 247 | * @return \eZ\Publish\SPI\Persistence\Content |
| 248 | 248 | */ |
@@ -344,7 +344,7 @@ discard block |
||
| 344 | 344 | /** |
| 345 | 345 | * Returns the metadata object for a content identified by $remoteId. |
| 346 | 346 | * |
| 347 | - * @param mixed $remoteId |
|
| 347 | + * @param string $remoteId |
|
| 348 | 348 | * |
| 349 | 349 | * @return \eZ\Publish\SPI\Persistence\Content\ContentInfo |
| 350 | 350 | */ |
@@ -360,7 +360,7 @@ discard block |
||
| 360 | 360 | * |
| 361 | 361 | * @throws \eZ\Publish\API\Repository\Exceptions\NotFoundException If version is not found |
| 362 | 362 | * |
| 363 | - * @param int|string $contentId |
|
| 363 | + * @param integer $contentId |
|
| 364 | 364 | * @param int $versionNo Version number to load |
| 365 | 365 | * |
| 366 | 366 | * @return \eZ\Publish\SPI\Persistence\Content\VersionInfo |
@@ -512,7 +512,7 @@ discard block |
||
| 512 | 512 | * |
| 513 | 513 | * @param int $contentId |
| 514 | 514 | * |
| 515 | - * @return bool |
|
| 515 | + * @return boolean|null |
|
| 516 | 516 | */ |
| 517 | 517 | public function deleteContent($contentId) |
| 518 | 518 | { |
@@ -544,7 +544,7 @@ discard block |
||
| 544 | 544 | * @param int $contentId |
| 545 | 545 | * @param int $versionNo |
| 546 | 546 | * |
| 547 | - * @return bool |
|
| 547 | + * @return boolean|null |
|
| 548 | 548 | */ |
| 549 | 549 | public function deleteVersion($contentId, $versionNo) |
| 550 | 550 | { |
@@ -657,7 +657,7 @@ discard block |
||
| 657 | 657 | * |
| 658 | 658 | * @todo Should the existence verifications happen here or is this supposed to be handled at a higher level? |
| 659 | 659 | * |
| 660 | - * @param mixed $relationId |
|
| 660 | + * @param integer $relationId |
|
| 661 | 661 | * @param int $type {@see \eZ\Publish\API\Repository\Values\Content\Relation::COMMON, |
| 662 | 662 | * \eZ\Publish\API\Repository\Values\Content\Relation::EMBED, |
| 663 | 663 | * \eZ\Publish\API\Repository\Values\Content\Relation::LINK, |
@@ -671,7 +671,7 @@ discard block |
||
| 671 | 671 | /** |
| 672 | 672 | * Loads relations from $sourceContentId. Optionally, loads only those with $type and $sourceContentVersionNo. |
| 673 | 673 | * |
| 674 | - * @param mixed $sourceContentId Source Content ID |
|
| 674 | + * @param integer $sourceContentId Source Content ID |
|
| 675 | 675 | * @param mixed|null $sourceContentVersionNo Source Content Version, null if not specified |
| 676 | 676 | * @param int|null $type {@see \eZ\Publish\API\Repository\Values\Content\Relation::COMMON, |
| 677 | 677 | * \eZ\Publish\API\Repository\Values\Content\Relation::EMBED, |
@@ -692,7 +692,7 @@ discard block |
||
| 692 | 692 | * |
| 693 | 693 | * Only loads relations against published versions. |
| 694 | 694 | * |
| 695 | - * @param mixed $destinationContentId Destination Content ID |
|
| 695 | + * @param integer $destinationContentId Destination Content ID |
|
| 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, |
| 698 | 698 | * \eZ\Publish\API\Repository\Values\Content\Relation::LINK, |