public function update($result)
{
if (!$this->isEnabled) {
return;
}
$this->resultNumber += $this->pageSize;
if (!@ldap_control_paged_result_response($this->connection->getConnection(), $result, $this->cookie)) {
throw new LdapConnectionException(sprintf('Unable to set paged results response: %s', $this->connection->getLastError()));
}
}