/** * Change the value for a permission * * @param string|array $action * @param string|\BeatSwitch\Lock\Resources\Resource $resource * @param int $resourceId */ public function toggle($action, $resource = null, $resourceId = null) { $this->assertLockInstanceIsSet(); $this->lock->toggle($action, $resource, $resourceId); }