public function setAllowed($role = self::ALL, $resource = self::ALL, $privilege = self::ALL)
    {
        if ($this->policy == self::POLICY_ALLOW) {
            $this->permission->allow($role, $resource, $privilege);
        } else {
            $this->permission->deny($role, $resource, $privilege);
        }
    }
public function setAllowed($role = self::ALL, $resource = self::ALL, $privilege = self::ALL)
    {
        if ($this->policy == self::POLICY_ALLOW) {
            $this->permission->allow($role, $resource, $privilege);
        } else {
            $this->permission->deny($role, $resource, $privilege);
        }
    }
public function setAllowed ( $ role = self :: ALL , $ resource = self :: ALL , $ privilege = self :: ALL ) { if ( $ this -> policy == self :: POLICY_ALLOW ) { $ this -> permission -> allow ( $ role , $ resource , $ privilege ) ; } else { $ this -> permission -> deny ( $ role , $ resource , $ privilege ) ; } }
Set allowed.

@param $role
@param $resource
@param $privilege
Set allowed .