Skip to content

Commit

Permalink
Limitation\Type: type array keys
Browse files Browse the repository at this point in the history
  • Loading branch information
adriendupuis committed Dec 20, 2024
1 parent bd4475f commit 8aadd04
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/contracts/Limitation/Type.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,17 +92,17 @@ public function acceptValue(APILimitationValue $limitationValue);
*
* @param \Ibexa\Contracts\Core\Repository\Values\User\Limitation $limitationValue
*
* @return \Ibexa\Contracts\Core\FieldType\ValidationError[]
* @return array<int, \Ibexa\Contracts\Core\FieldType\ValidationError>
*/
public function validate(APILimitationValue $limitationValue);

/**
* Create the Limitation Value.
*
* The is the method to create values as Limitation type needs value knowledge anyway in acceptValue,
* This is the method to create values as Limitation type needs value knowledge anyway in acceptValue,
* the reverse relation is provided by means of identifier lookup (Value has identifier, and so does RoleService).
*
* @param mixed[] $limitationValues
* @param array<int, mixed> $limitationValues
*
* @return \Ibexa\Contracts\Core\Repository\Values\User\Limitation
*/
Expand All @@ -120,7 +120,7 @@ public function buildValue(array $limitationValues);
* @param \Ibexa\Contracts\Core\Repository\Values\User\Limitation $value
* @param \Ibexa\Contracts\Core\Repository\Values\User\UserReference $currentUser
* @param \Ibexa\Contracts\Core\Repository\Values\ValueObject $object
* @param \Ibexa\Contracts\Core\Repository\Values\ValueObject[]|null $targets An array of location, parent or "assignment"
* @param array<int, \Ibexa\Contracts\Core\Repository\Values\ValueObject>|null $targets An array of location, parent or "assignment"
* objects, if null: none where provided by caller
*
* @return bool|null Returns one of ACCESS_* constants, {@see Type::ACCESS_GRANTED}, {@see Type::ACCESS_ABSTAIN}, or {@see Type::ACCESS_DENIED}.
Expand Down

0 comments on commit 8aadd04

Please sign in to comment.