public function removeMember(GroupMemberInterface $member)
    {
        if (!$this->hasMember($member)) {
            throw new \InvalidArgumentException('Trying to remove a member that is not in that group');
        }

        $this->members->removeElement($member);
    }
public function removeMember(GroupMemberInterface $member)
    {
        if (!$this->hasMember($member)) {
            throw new \InvalidArgumentException('Trying to remove a member that is not in that group');
        }

        $this->members->removeElement($member);
    }
public function removeMember ( GroupMemberInterface $ member ) { if ( ! $ this -> hasMember ( $ member ) ) { throw new \ InvalidArgumentException ( 'Trying to remove a member that is not in that group' ) ; } $ this -> members -> removeElement ( $ member ) ; }
Remove a member from the collection.

@param GroupMemberInterface $member
Remove a member from the collection .