Skip to content

Commit

Permalink
Revert src/lib/Limitation/
Browse files Browse the repository at this point in the history
Revert 1799d56  changes on src/lib/Limitation/ as this is out of contracts scope.
  • Loading branch information
adriendupuis committed Dec 20, 2024
1 parent 1cdc9c4 commit bd4475f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/lib/Limitation/LocationLimitationType.php
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,10 @@ public function getCriterion(APILimitationValue $value, APIUserReference $curren
}

/**
* Returns an integer code meaning that the value must be an array listing location IDs.
* Returns info on valid $limitationValues.
*
* @return int {@see LocationLimitationType::VALUE_SCHEMA_LOCATION_ID}
* @return mixed[]|int In case of array, a hash with key as valid limitations value and value as human readable name
* of that option, in case of int on of VALUE_SCHEMA_ constants.
*/
public function valueSchema()
{
Expand Down
5 changes: 3 additions & 2 deletions src/lib/Limitation/SubtreeLimitationType.php
Original file line number Diff line number Diff line change
Expand Up @@ -258,9 +258,10 @@ public function getCriterion(APILimitationValue $value, APIUserReference $curren
}

/**
* Returns an integer code meaning that the value must be an array listing location paths.
* Returns info on valid $limitationValues.
*
* @return int {@see SubtreeLimitationType::VALUE_SCHEMA_LOCATION_PATH}
* @return mixed[]|int In case of array, a hash with key as valid limitations value and value as human readable name
* of that option, in case of int on of VALUE_SCHEMA_ constants.
*/
public function valueSchema()
{
Expand Down

0 comments on commit bd4475f

Please sign in to comment.