_connect_error = $error; } /** * Set Connection Error Code. * * @param integer $errno Error Code */ public function setConnectErrno($errno) { $this->_connect_erro = $errno; } /** * Set Error Message. * * @param string $error Error message */ public function setError($error) { $this->_error = $error; } /** * Set Error Code. * * @param integer $errno Error Code */ public function setErrno($errno) { $this->_erro = $errno; } /** * Return connection error message. * * @return string Error message */ public function getConnectError() { return $this->_connect_error; } /** * Return connection errno code. * * @return integer Error code */ public function getConnectErrno() { return $this->_connect_errno; } /** * Return error message. * * @return string Error message */ public function getError() { return $this->_error; } /** * Return errno code. * * @return integer Error code */ public function getErrno() { return $this->_errno; } }