unset($this->entries
[$offset]);
} private function getSingleEntry($con,
$current): Entry
{ $attributes =
ldap_get_attributes($con,
$current);
if (false ===
$attributes) { throw new LdapException('Could not fetch attributes: '.
ldap_error($con));
} $attributes =
$this->
cleanupAttributes($attributes);
$dn =
ldap_get_dn($con,
$current);
if (false ===
$dn) { throw new LdapException('Could not fetch DN: '.
ldap_error($con));
} return new Entry($dn,
$attributes);
} private function cleanupAttributes(array
$entry): array
{