public function removeMember(PrincipalInterface $principal)
    {

        // query whether or not the passed principal is a member of this group
        if ($this->members->exists($principal->getName())) {
            // remove the princial and return TRUE
            $this->members->remove($principal->getName());
            return true;
        }

        // return FALSE, if not
        return false;
    }
public function removeMember(PrincipalInterface $principal)
    {

        // query whether or not the passed principal is a member of this group
        if ($this->members->exists($principal->getName())) {
            // remove the princial and return TRUE
            $this->members->remove($principal->getName());
            return true;
        }

        // return FALSE, if not
        return false;
    }
public function removeMember ( PrincipalInterface $ principal ) { // query whether or not the passed principal is a member of this group if ( $ this -> members -> exists ( $ principal -> getName ( ) ) ) { // remove the princial and return TRUE $ this -> members -> remove ( $ principal -> getName ( ) ) ; return true ; } // return FALSE, if not return false ; }
Removes the passed principal from the group.

@param \AppserverIo\Psr\Security\PrincipalInterface $principal The principal to remove

@return boolean TRUE if the member was successfully removed, FALSE if the principal was not a member
Removes the passed principal from the group .