Completed
Branch master (994e29)
by SHADRACK
06:42 queued 15s
created
src/Mpesa.php 1 patch
Doc Comments   +6 added lines, -5 removed lines patch added patch discarded remove patch
@@ -85,7 +85,6 @@  discard block
 block discarded – undo
85 85
      *
86 86
      * Initializes the class with an array of API values.
87 87
      *
88
-     * @param array $config
89 88
      * @return void
90 89
      * @throws exception if the values array is not valid
91 90
      */
@@ -129,8 +128,6 @@  discard block
 block discarded – undo
129 128
      *
130 129
      * Handles submission of all API endpoints queries
131 130
      *
132
-     * @param string $url The API endpoint URL
133
-     * @param json $data The data to POST to the endpoint $url
134 131
      * @return object|boolean Curl response or FALSE on failure
135 132
      * @throws exception if the Access Token is not valid
136 133
      */
@@ -148,6 +145,9 @@  discard block
 block discarded – undo
148 145
     }
149 146
 
150 147
 
148
+    /**
149
+     * @return resource
150
+     */
151 151
     public function getAccessToken()
152 152
     {
153 153
         $credentials = base64_encode($this->consumer_key . ':' . $this->consumer_secret);
@@ -170,6 +170,9 @@  discard block
 block discarded – undo
170 170
         }
171 171
     }
172 172
 
173
+    /**
174
+     * @param string $url
175
+     */
173 176
     private function submit_request($url, $data)
174 177
     { // Returns cURL response
175 178
 
@@ -265,8 +268,6 @@  discard block
 block discarded – undo
265 268
      *
266 269
      * This method is used to register URLs for callbacks when money is sent from the MPesa toolkit menu
267 270
      *
268
-     * @param string $confirmURL The local URL that MPesa calls to confirm a payment
269
-     * @param string $ValidationURL The local URL that MPesa calls to validate a payment
270 271
      * @return object Curl Response from submit_request, FALSE on failure
271 272
      */
272 273
 
Please login to merge, or discard this patch.