Adldap\Models\Group::removeMember PHP Method

removeMember() public method

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