public function close() { if ($this->isBound) { @ldap_close($this->connection); $this->isBound = false; $this->server = null; $this->lastActivity = null; } return $this; }