Skip to content

Commit

Permalink
add user id
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexzPurewoko committed Dec 15, 2023
1 parent cd176cc commit b3f2410
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Abilities/Core/Storage/StorageInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ public function onInsertNewRule(int|string $userIdentification, string $newRule)
* @param int $ruleId the rule ID
* @param string $updatedRule the updated rule for the current rule ID
*/
public function onUpdateRule(int $ruleId, string $updatedRule): void;
public function onUpdateRule(int $ruleId, int|string $userId, string $updatedRule): void;

/**
* This method called when a single rule is deleted.
*
* @param int $deletedRuleId the rule defined by ID to be deleted
*/
public function onDeleteSpecificRule(int $deletedRuleId): void;
public function onDeleteSpecificRule(int $deletedRuleId, int|string $userId): void;

/**
* This method called at initial, or any changes made after 'commit()' called.
Expand Down

0 comments on commit b3f2410

Please sign in to comment.