protected function add(Permission $permission, $override = true)
    {
        if ($override || ! $this->permissions->containsKey($permission->getName()))
        {
            $this->permissions->set($permission->getName(), $permission);
        }
    }
protected function add(Permission $permission, $override = true)
    {
        if ($override || ! $this->permissions->containsKey($permission->getName()))
        {
            $this->permissions->set($permission->getName(), $permission);
        }
    }
protected function add ( Permission $ permission , $ override = true ) { if ( $ override || ! $ this -> permissions -> containsKey ( $ permission -> getName ( ) ) ) { $ this -> permissions -> set ( $ permission -> getName ( ) , $ permission ) ; } }
Adds a permission to the merged permissions Collection.
Override logic is handled from outside to enable strict or standard permissions.

@param Permission $permission
@param bool       $override
Adds a permission to the merged permissions Collection . Override logic is handled from outside to enable strict or standard permissions .