Completed
Push — master ( 238f82...82e0d8 )
by Sam
01:16
created
src/Daraja.php 1 patch
Doc Comments   +12 added lines, -6 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 
56 56
     /**
57 57
      * This is used to generate tokens for the live environment
58
-     * @return mixed
58
+     * @return null|Daraja
59 59
      */
60 60
     public function generateLiveToken(){
61 61
         if(!isset($this->consumer_key)||!isset($this->consumer_secret)){
@@ -79,12 +79,15 @@  discard block
 block discarded – undo
79 79
         return $this;
80 80
     }
81 81
 
82
+    /**
83
+     * @return resource
84
+     */
82 85
     public function getAccessToken() {
83 86
         return $this->access_token;
84 87
     }
85 88
     /**
86 89
      * use this function to generate a sandbox token
87
-     * @return mixed
90
+     * @return null|Daraja
88 91
      */
89 92
     public function generateSandBoxToken(){
90 93
 
@@ -170,6 +173,9 @@  discard block
 block discarded – undo
170 173
         return base64_encode($encrypted);
171 174
     }
172 175
 
176
+    /**
177
+     * @param string $publicKeyFile
178
+     */
173 179
     public function preparePublicKey($publicKeyFile) {
174 180
         $pkey = file_get_contents($publicKeyFile);
175 181
         $pkey = str_replace(["\r", "\n"],"", $pkey);
@@ -219,13 +225,13 @@  discard block
 block discarded – undo
219 225
     }
220 226
     /**
221 227
      * Use this function to initiate a reversal request. This is the lowest level function that can change even the Organization Id Type.
222
-     * @param $CommandID | Takes only 'TransactionReversal' Command id
228
+     * @param string $CommandID | Takes only 'TransactionReversal' Command id
223 229
      * @param $Initiator | The name of Initiator to initiating  the request
224 230
      * @param $SecurityCredential | 	Encrypted Credential of user getting transaction amount
225 231
      * @param $TransactionID | Unique Id received with every transaction response.
226 232
      * @param $Amount | Amount
227 233
      * @param $ReceiverParty | Organization /MSISDN sending the transaction
228
-     * @param $RecieverIdentifierType | Type of organization receiving the transaction
234
+     * @param integer $RecieverIdentifierType | Type of organization receiving the transaction
229 235
      * @param $ResultURL | The path that stores information of transaction
230 236
      * @param $QueueTimeOutURL | The path that stores information of time out transaction
231 237
      * @param $Remarks | Comments that are sent along with the transaction.
@@ -433,10 +439,10 @@  discard block
 block discarded – undo
433 439
      * Use this function to make a transaction status request
434 440
      * @param $Initiator | The name of Initiator to initiating the request.
435 441
      * @param $SecurityCredential | 	Encrypted password for the initiator to autheticate the transaction request.
436
-     * @param $CommandID | Unique command for each transaction type, possible values are: TransactionStatusQuery.
442
+     * @param string $CommandID | Unique command for each transaction type, possible values are: TransactionStatusQuery.
437 443
      * @param $TransactionID | Organization Receiving the funds.
438 444
      * @param $PartyA | Organization/MSISDN sending the transaction
439
-     * @param $IdentifierType | Type of organization receiving the transaction
445
+     * @param integer $IdentifierType | Type of organization receiving the transaction
440 446
      * @param $ResultURL | The path that stores information of transaction
441 447
      * @param $QueueTimeOutURL | The path that stores information of time out transaction
442 448
      * @param $Remarks | 	Comments that are sent along with the transaction
Please login to merge, or discard this patch.