public function deletePermissions($roleNames)
    {
        if (is_array($roleNames)) {
            foreach($roleNames as $name) {
                unset($this->permissions[$name]);
            }
        } else {
            unset($this->permissions[$roleNames]);
        }
        return $this;
    }