public function close() { $connection = $this->getConnection(); return is_resource($connection) ? ldap_close($connection) : false; }