From a834565a1d598cdeb54c552f55d70b5801fed5d3 Mon Sep 17 00:00:00 2001 From: KangYue Date: Fri, 23 Dec 2016 03:13:39 +0800 Subject: [PATCH] fix issue #33, changed ErrorCode class properties to static --- src/errorCode.php | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/src/errorCode.php b/src/errorCode.php index 7f5a2c3..2e9c3a4 100755 --- a/src/errorCode.php +++ b/src/errorCode.php @@ -18,17 +18,16 @@ */ class ErrorCode { - public $OK = 0; - public $ValidateSignatureError = -40001; - public $ParseXmlError = -40002; - public $ComputeSignatureError = -40003; - public $IllegalAesKey = -40004; - public $ValidateAppidError = -40005; - public $EncryptAESError = -40006; - public $DecryptAESError = -40007; - public $IllegalBuffer = -40008; - public $EncodeBase64Error = -40009; - public $DecodeBase64Error = -40010; - public $GenReturnXmlError = -40011; + static $OK = 0; + static $ValidateSignatureError = -40001; + static $ParseXmlError = -40002; + static $ComputeSignatureError = -40003; + static $IllegalAesKey = -40004; + static $ValidateAppidError = -40005; + static $EncryptAESError = -40006; + static $DecryptAESError = -40007; + static $IllegalBuffer = -40008; + static $EncodeBase64Error = -40009; + static $DecodeBase64Error = -40010; + static $GenReturnXmlError = -40011; } -