@@ -68,6 +68,7 @@ |
||
68 | 68 | |
69 | 69 | /** |
70 | 70 | * {@inheritdoc} |
71 | + * @param string $key |
|
71 | 72 | */ |
72 | 73 | public function getItem($key) |
73 | 74 | { |
@@ -150,7 +150,7 @@ discard block |
||
150 | 150 | * Will contain always a complete list of fields. |
151 | 151 | * |
152 | 152 | * @param \eZ\Publish\SPI\Persistence\Content\CreateStruct $struct Content creation struct. |
153 | - * @param mixed $versionNo Used by self::copy() to maintain version numbers |
|
153 | + * @param integer $versionNo Used by self::copy() to maintain version numbers |
|
154 | 154 | * |
155 | 155 | * @return \eZ\Publish\SPI\Persistence\Content Content value object |
156 | 156 | */ |
@@ -432,7 +432,7 @@ discard block |
||
432 | 432 | /** |
433 | 433 | * Returns the metadata object for a content identified by $remoteId. |
434 | 434 | * |
435 | - * @param mixed $remoteId |
|
435 | + * @param string $remoteId |
|
436 | 436 | * |
437 | 437 | * @return \eZ\Publish\SPI\Persistence\Content\ContentInfo |
438 | 438 | */ |
@@ -593,7 +593,7 @@ discard block |
||
593 | 593 | * |
594 | 594 | * @param int $contentId |
595 | 595 | * |
596 | - * @return bool |
|
596 | + * @return boolean|null |
|
597 | 597 | */ |
598 | 598 | public function deleteContent($contentId) |
599 | 599 | { |
@@ -625,7 +625,7 @@ discard block |
||
625 | 625 | * @param int $contentId |
626 | 626 | * @param int $versionNo |
627 | 627 | * |
628 | - * @return bool |
|
628 | + * @return boolean|null |
|
629 | 629 | */ |
630 | 630 | public function deleteVersion($contentId, $versionNo) |
631 | 631 | { |
@@ -750,7 +750,7 @@ discard block |
||
750 | 750 | * |
751 | 751 | * @todo Should the existence verifications happen here or is this supposed to be handled at a higher level? |
752 | 752 | * |
753 | - * @param mixed $relationId |
|
753 | + * @param integer $relationId |
|
754 | 754 | * @param int $type {@see \eZ\Publish\API\Repository\Values\Content\Relation::COMMON, |
755 | 755 | * \eZ\Publish\API\Repository\Values\Content\Relation::EMBED, |
756 | 756 | * \eZ\Publish\API\Repository\Values\Content\Relation::LINK, |
@@ -764,7 +764,7 @@ discard block |
||
764 | 764 | /** |
765 | 765 | * Loads relations from $sourceContentId. Optionally, loads only those with $type and $sourceContentVersionNo. |
766 | 766 | * |
767 | - * @param mixed $sourceContentId Source Content ID |
|
767 | + * @param integer $sourceContentId Source Content ID |
|
768 | 768 | * @param mixed|null $sourceContentVersionNo Source Content Version, null if not specified |
769 | 769 | * @param int|null $type {@see \eZ\Publish\API\Repository\Values\Content\Relation::COMMON, |
770 | 770 | * \eZ\Publish\API\Repository\Values\Content\Relation::EMBED, |
@@ -785,7 +785,7 @@ discard block |
||
785 | 785 | * |
786 | 786 | * Only loads relations against published versions. |
787 | 787 | * |
788 | - * @param mixed $destinationContentId Destination Content ID |
|
788 | + * @param integer $destinationContentId Destination Content ID |
|
789 | 789 | * @param int|null $type {@see \eZ\Publish\API\Repository\Values\Content\Relation::COMMON, |
790 | 790 | * \eZ\Publish\API\Repository\Values\Content\Relation::EMBED, |
791 | 791 | * \eZ\Publish\API\Repository\Values\Content\Relation::LINK, |
@@ -50,7 +50,7 @@ |
||
50 | 50 | * @see \eZ\Publish\API\Repository\PermissionResolver::canUser() |
51 | 51 | * |
52 | 52 | * @param TokenInterface $token A TokenInterface instance |
53 | - * @param object $object The object to secure |
|
53 | + * @param \stdClass $object The object to secure |
|
54 | 54 | * @param array $attributes An array of attributes associated with the method being invoked |
55 | 55 | * |
56 | 56 | * @return int either ACCESS_GRANTED, ACCESS_ABSTAIN, or ACCESS_DENIED |
@@ -236,7 +236,6 @@ discard block |
||
236 | 236 | * |
237 | 237 | * @param \eZ\Publish\API\Repository\Values\ValueObject $expectedValues |
238 | 238 | * @param \eZ\Publish\API\Repository\Values\ValueObject $actualObject |
239 | - * @param array $propertyNames |
|
240 | 239 | */ |
241 | 240 | protected function assertStructPropertiesCorrect(ValueObject $expectedValues, ValueObject $actualObject, array $additionalProperties = []) |
242 | 241 | { |
@@ -297,6 +296,7 @@ discard block |
||
297 | 296 | |
298 | 297 | /** |
299 | 298 | * Create a user in editor user group. |
299 | + * @param string $email |
|
300 | 300 | */ |
301 | 301 | protected function createUserVersion1(string $login = 'user', ?string $email = null): User |
302 | 302 | { |
@@ -525,7 +525,7 @@ discard block |
||
525 | 525 | /** |
526 | 526 | * Create role of a given name with the given policies described by an array. |
527 | 527 | * |
528 | - * @param $roleName |
|
528 | + * @param string $roleName |
|
529 | 529 | * @param array $policiesData [['module' => 'content', 'function' => 'read', 'limitations' => []] |
530 | 530 | * |
531 | 531 | * @return \eZ\Publish\API\Repository\Values\User\Role |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | /** |
70 | 70 | * Create a Connection Handler with corresponding Doctrine connection from DSN. |
71 | 71 | * |
72 | - * @param string|array $dsn |
|
72 | + * @param string $dsn |
|
73 | 73 | * |
74 | 74 | * @return ConnectionHandler |
75 | 75 | */ |
@@ -460,8 +460,9 @@ discard block |
||
460 | 460 | * |
461 | 461 | * This is an optimization and works around the ezcDB implementation. |
462 | 462 | * |
463 | - * @param string $identifier |
|
464 | 463 | * |
464 | + * @param string $name |
|
465 | + * @param string $alias |
|
465 | 466 | * @return string |
466 | 467 | */ |
467 | 468 | public function alias($name, $alias) |
@@ -496,7 +497,7 @@ discard block |
||
496 | 497 | * @param string $table |
497 | 498 | * @param string $column |
498 | 499 | * |
499 | - * @return mixed |
|
500 | + * @return string |
|
500 | 501 | */ |
501 | 502 | public function getAutoIncrementValue($table, $column) |
502 | 503 | { |
@@ -63,7 +63,7 @@ |
||
63 | 63 | * Inserts a new content object. |
64 | 64 | * |
65 | 65 | * @param \eZ\Publish\SPI\Persistence\Content\CreateStruct $struct |
66 | - * @param mixed $currentVersionNo |
|
66 | + * @param integer $currentVersionNo |
|
67 | 67 | * |
68 | 68 | * @return int ID |
69 | 69 | */ |
@@ -423,8 +423,8 @@ discard block |
||
423 | 423 | /** |
424 | 424 | * Insert assignment of $typeId to $groupId. |
425 | 425 | * |
426 | - * @param mixed $groupId |
|
427 | - * @param mixed $typeId |
|
426 | + * @param integer $groupId |
|
427 | + * @param integer $typeId |
|
428 | 428 | * @param int $status |
429 | 429 | */ |
430 | 430 | public function insertGroupAssignment($groupId, $typeId, $status) |
@@ -455,8 +455,8 @@ discard block |
||
455 | 455 | /** |
456 | 456 | * Deletes a group assignments for a Type. |
457 | 457 | * |
458 | - * @param mixed $groupId |
|
459 | - * @param mixed $typeId |
|
458 | + * @param integer $groupId |
|
459 | + * @param integer $typeId |
|
460 | 460 | * @param int $status |
461 | 461 | */ |
462 | 462 | public function deleteGroupAssignment($groupId, $typeId, $status) |
@@ -505,7 +505,7 @@ discard block |
||
505 | 505 | /** |
506 | 506 | * Loads data about Group with $identifier. |
507 | 507 | * |
508 | - * @param mixed $identifier |
|
508 | + * @param string $identifier |
|
509 | 509 | * |
510 | 510 | * @return string[][] |
511 | 511 | */ |
@@ -564,7 +564,7 @@ discard block |
||
564 | 564 | /** |
565 | 565 | * Loads data for all Types in $status in $groupId. |
566 | 566 | * |
567 | - * @param mixed $groupId |
|
567 | + * @param integer $groupId |
|
568 | 568 | * @param int $status |
569 | 569 | * |
570 | 570 | * @return string[][] |
@@ -585,7 +585,7 @@ discard block |
||
585 | 585 | /** |
586 | 586 | * Inserts a $fieldDefinition for $typeId. |
587 | 587 | * |
588 | - * @param mixed $typeId |
|
588 | + * @param integer $typeId |
|
589 | 589 | * @param int $status |
590 | 590 | * @param \eZ\Publish\SPI\Persistence\Content\Type\FieldDefinition $fieldDefinition |
591 | 591 | * @param \eZ\Publish\Core\Persistence\Legacy\Content\StorageFieldDefinition $storageFieldDef |
@@ -803,9 +803,9 @@ discard block |
||
803 | 803 | /** |
804 | 804 | * Deletes a field definition. |
805 | 805 | * |
806 | - * @param mixed $typeId |
|
806 | + * @param integer $typeId |
|
807 | 807 | * @param int $status |
808 | - * @param mixed $fieldDefinitionId |
|
808 | + * @param integer $fieldDefinitionId |
|
809 | 809 | */ |
810 | 810 | public function deleteFieldDefinition($typeId, $status, $fieldDefinitionId) |
811 | 811 | { |
@@ -846,7 +846,7 @@ discard block |
||
846 | 846 | /** |
847 | 847 | * Updates a $fieldDefinition for $typeId. |
848 | 848 | * |
849 | - * @param mixed $typeId |
|
849 | + * @param integer $typeId |
|
850 | 850 | * @param int $status |
851 | 851 | * @param \eZ\Publish\SPI\Persistence\Content\Type\FieldDefinition $fieldDefinition |
852 | 852 | * @param \eZ\Publish\Core\Persistence\Legacy\Content\StorageFieldDefinition $storageFieldDef |
@@ -989,9 +989,8 @@ discard block |
||
989 | 989 | /** |
990 | 990 | * Update a type with $updateStruct. |
991 | 991 | * |
992 | - * @param mixed $typeId |
|
992 | + * @param integer $typeId |
|
993 | 993 | * @param int $status |
994 | - * @param \eZ\Publish\SPI\Persistence\Content\Type\UpdateStruct $updateStruct |
|
995 | 994 | */ |
996 | 995 | public function updateType($typeId, $status, Type $type) |
997 | 996 | { |
@@ -1034,7 +1033,7 @@ discard block |
||
1034 | 1033 | /** |
1035 | 1034 | * Loads an array with data about $typeId in $status. |
1036 | 1035 | * |
1037 | - * @param mixed $typeId |
|
1036 | + * @param integer $typeId |
|
1038 | 1037 | * @param int $status |
1039 | 1038 | * |
1040 | 1039 | * @return array Data rows. |
@@ -1076,7 +1075,7 @@ discard block |
||
1076 | 1075 | * Loads an array with data about the type referred to by $remoteId in |
1077 | 1076 | * $status. |
1078 | 1077 | * |
1079 | - * @param mixed $remoteId |
|
1078 | + * @param string $remoteId |
|
1080 | 1079 | * @param int $status |
1081 | 1080 | * |
1082 | 1081 | * @return array(int=>array(string=>mixed)) Data rows. |
@@ -61,6 +61,9 @@ |
||
61 | 61 | return $this->siteAccess; |
62 | 62 | } |
63 | 63 | |
64 | + /** |
|
65 | + * @param $siteAccess |
|
66 | + */ |
|
64 | 67 | public function getSiteAccessesRelation(?SiteAccess $siteAccess = null): array |
65 | 68 | { |
66 | 69 | $siteAccess = $siteAccess ?? $this->siteAccess; |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | * Creates a Content from the given $struct and $currentVersionNo. |
58 | 58 | * |
59 | 59 | * @param \eZ\Publish\SPI\Persistence\Content\CreateStruct $struct |
60 | - * @param mixed $currentVersionNo |
|
60 | + * @param integer $currentVersionNo |
|
61 | 61 | * |
62 | 62 | * @return \eZ\Publish\SPI\Persistence\Content\ContentInfo |
63 | 63 | */ |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | * Creates a new version for the given $struct and $versionNo. |
93 | 93 | * |
94 | 94 | * @param \eZ\Publish\SPI\Persistence\Content\CreateStruct $struct |
95 | - * @param mixed $versionNo |
|
95 | + * @param integer $versionNo |
|
96 | 96 | * |
97 | 97 | * @return \eZ\Publish\SPI\Persistence\Content\VersionInfo |
98 | 98 | */ |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | * Creates a new version for the given $content. |
126 | 126 | * |
127 | 127 | * @param \eZ\Publish\SPI\Persistence\Content $content |
128 | - * @param mixed $versionNo |
|
128 | + * @param integer $versionNo |
|
129 | 129 | * @param mixed $userId |
130 | 130 | * @param string|null $languageCode |
131 | 131 | * |