public function removeMember($member)
    {
        $member = ($member instanceof Model ? $member->getDn() : $member);

        if (is_null($member)) {
            throw new InvalidArgumentException(
                'Cannot remove member to group. The members distinguished name cannot be null.'
            );
        }

        $mod = $this->newBatchModification(
            $this->schema->member(),
            LDAP_MODIFY_BATCH_REMOVE,
            [$member]
        );

        return $this->addModification($mod)->save();
    }
public function removeMember($member)
    {
        $member = ($member instanceof Model ? $member->getDn() : $member);

        if (is_null($member)) {
            throw new InvalidArgumentException(
                'Cannot remove member to group. The members distinguished name cannot be null.'
            );
        }

        $mod = $this->newBatchModification(
            $this->schema->member(),
            LDAP_MODIFY_BATCH_REMOVE,
            [$member]
        );

        return $this->addModification($mod)->save();
    }
public function removeMember ( $ member ) { $ member = ( $ member instanceof Model ? $ member -> getDn ( ) : $ member ) ; if ( is_null ( $ member ) ) { throw new InvalidArgumentException ( 'Cannot remove member to group. The members distinguished name cannot be null.' ) ; } $ mod = $ this -> newBatchModification ( $ this -> schema -> member ( ) , LDAP_MODIFY_BATCH_REMOVE , [ $ member ] ) ; return $ this -> addModification ( $ mod ) -> save ( ) ; }
Removes an entry from the current group.

@param string|Entry $member

@throws InvalidArgumentException

@return bool
Removes an entry from the current group .