Completed
Push — master ( 7e1aad...2b4924 )
by John
01:53
created
src/authnet/AuthnetWebhooksRequest.php 1 patch
Doc Comments   +16 added lines, -13 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
     /**
83 83
      * Outputs the endpoint URL and request JSON in a human readable format
84 84
      *
85
-     * @return  array   list of event types
85
+     * @return  AuthnetWebhooksResponse   list of event types
86 86
      */
87 87
     public function getEventTypes()
88 88
     {
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
      *
102 102
      * @throws  \JohnConde\Authnet\AuthnetInvalidParameterException
103 103
      *
104
-     * @return  array   list of event types
104
+     * @return  AuthnetWebhooksResponse   list of event types
105 105
      */
106 106
     public function createWebhooks(Array $webhooks, $webhookUrl, $status = 'active')
107 107
     {
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
     /**
136 136
      * List all of your webhooks
137 137
      *
138
-     * @return  array   list of event types
138
+     * @return  AuthnetWebhooksResponse   list of event types
139 139
      */
140 140
     public function getWebhooks()
141 141
     {
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
      *
151 151
      * @param   string   $webhookId   Webhook ID to be retrieved
152 152
      *
153
-     * @return  array   list of event types
153
+     * @return  AuthnetWebhooksResponse   list of event types
154 154
      */
155 155
     public function getWebhook($webhookId)
156 156
     {
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
      *
171 171
      * @throws  \JohnConde\Authnet\AuthnetInvalidParameterException
172 172
      *
173
-     * @return  array   list of event types
173
+     * @return  AuthnetWebhooksResponse   list of event types
174 174
      */
175 175
     public function updateWebhook($webhookId, $webhookUrl, Array $eventTypes, $status = 'active')
176 176
     {
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
      * @param   integer   $limit    Default: 1000
207 207
      * @param   integer   $offset   Default: 0
208 208
      *
209
-     * @return  array   list of event types
209
+     * @return  AuthnetWebhooksResponse   list of event types
210 210
      */
211 211
     public function getNotificationHistory($limit = 1000, $offset = 0)
212 212
     {
@@ -245,11 +245,12 @@  discard block
 block discarded – undo
245 245
     /**
246 246
      * Make GET request via Curl
247 247
      *
248
-     * @param   object  $url
248
+     * @param   string  $url
249 249
      *
250 250
      * @throws  \JohnConde\Authnet\AuthnetCurlException
251 251
      *
252 252
      * @codeCoverageIgnore
253
+     * @return string
253 254
      */
254 255
     private function get($url) {
255 256
         $this->processor->get($url);
@@ -259,12 +260,13 @@  discard block
 block discarded – undo
259 260
     /**
260 261
      * Make POST request via Curl
261 262
      *
262
-     * @param   object  $url        API endpoint
263
-     * @param   object  $request    JSON request payload
263
+     * @param   string  $url        API endpoint
264
+     * @param   string  $request    JSON request payload
264 265
      *
265 266
      * @throws  \JohnConde\Authnet\AuthnetCurlException
266 267
      *
267 268
      * @codeCoverageIgnore
269
+     * @return string
268 270
      */
269 271
     private function post($url, $request) {
270 272
         $this->processor->post($url, $request);
@@ -274,12 +276,13 @@  discard block
 block discarded – undo
274 276
     /**
275 277
      * Make PUT request via Curl
276 278
      *
277
-     * @param   object  $url        API endpoint
278
-     * @param   object  $request    JSON request payload
279
+     * @param   string  $url        API endpoint
280
+     * @param   string  $request    JSON request payload
279 281
      *
280 282
      * @throws  \JohnConde\Authnet\AuthnetCurlException
281 283
      *
282 284
      * @codeCoverageIgnore
285
+     * @return string
283 286
      */
284 287
     private function put($url, $request) {
285 288
         $this->processor->put($url, $request, true);
@@ -289,7 +292,7 @@  discard block
 block discarded – undo
289 292
     /**
290 293
      * Make DELETE request via Curl
291 294
      *
292
-     * @param   object  $url        API endpoint
295
+     * @param   string  $url        API endpoint
293 296
      *
294 297
      * @throws  \JohnConde\Authnet\AuthnetCurlException
295 298
      *
@@ -303,7 +306,7 @@  discard block
 block discarded – undo
303 306
     /**
304 307
      * Sets the handler to be used to handle our API call. Mainly used for unit testing as Curl is used by default.
305 308
      *
306
-     * @param   object  $processor
309
+     * @param   \Curl\Curl  $processor
307 310
      */
308 311
     public function setProcessHandler($processor)
309 312
     {
Please login to merge, or discard this patch.