errorCode = (int)$errorCode; $this->errorMessage = $errorMessage; $this->errorType = $errorType; } /** * Get error code. * * @return int */ public function getErrorCode() { return $this->errorCode; } /** * Get error message. * * @return string */ public function getErrorMessage() { return $this->errorMessage; } /** * Get error type. * * @return string */ public function getErrorType() { return $this->errorType; } /** * To array. * * @return array */ public function toArray() { return array( 'errorCode' => $this->getErrorCode(), 'errorMessage' => $this->getErrorMessage(), 'errorType' => $this->getErrorType(), ); } }