public function Avatax::__destruct in Drupal Commerce Connector for AvaTax 7.5
Closes the cURL handle when the object is destroyed.
File
- lib/
Avatax.php, line 114 - Defines a class for consuming the Avatax API.
Class
- Avatax
- Defines the Avatax class.
Code
public function __destruct() {
if (is_resource($this->ch)) {
curl_close($this->ch);
}
}