src/Lock.php
public function deny($action, $resource = null, $resourceId = null, $conditions = [])
    {
        $actions = (array) $action;
        $resource = $this->convertResourceToObject($resource, $resourceId);
        $permissions = $this->getPermissions();

        foreach ($actions as $action) {
            $this->clearPermission($action, $resource, $permissions);

            $this->storePermission(new Restriction($action, $resource, $conditions));
        }
    }
public function deny($action, $resource = null, $resourceId = null, $conditions = [])
    {
        $actions = (array) $action;
        $resource = $this->convertResourceToObject($resource, $resourceId);
        $permissions = $this->getPermissions();

        foreach ($actions as $action) {
            $this->clearPermission($action, $resource, $permissions);

            $this->storePermission(new Restriction($action, $resource, $conditions));
        }
    }
public function deny ( $ action , $ resource = null , $ resourceId = null , $ conditions = [ ] ) { $ actions = ( array ) $ action ; $ resource = $ this -> convertResourceToObject ( $ resource , $ resourceId ) ; $ permissions = $ this -> getPermissions ( ) ; foreach ( $ actions as $ action ) { $ this -> clearPermission ( $ action , $ resource , $ permissions ) ; $ this -> storePermission ( new Restriction ( $ action , $ resource , $ conditions ) ) ; } }
Deny the subject from doing something

@param string|array $action
@param string|\BeatSwitch\Lock\Resources\Resource $resource
@param int $resourceId
@param \BeatSwitch\Lock\Permissions\Condition|\BeatSwitch\Lock\Permissions\Condition[]|\Closure $conditions
Deny the subject from doing something