@@ -145,8 +145,8 @@ class Zend_Feed_Pubsubhubbub_Subscriber
145
145
* options for the Subscriber without calling all supported setter
146
146
* methods in turn.
147
147
*
148
- * @param array|Zend_Config $options Options array or Zend_Config instance
149
- * @return void
148
+ * @param array|Zend_Config|null $config Options array or Zend_Config instance
149
+ * @throws Zend_Feed_Pubsubhubbub_Exception
150
150
*/
151
151
public function __construct ($ config = null )
152
152
{
@@ -158,7 +158,8 @@ public function __construct($config = null)
158
158
/**
159
159
* Process any injected configuration options
160
160
*
161
- * @param array|Zend_Config $options Options array or Zend_Config instance
161
+ * @param array|Zend_Config $config Options array or Zend_Config instance
162
+ * @throws Zend_Feed_Pubsubhubbub_Exception
162
163
* @return Zend_Feed_Pubsubhubbub_Subscriber
163
164
*/
164
165
public function setConfig ($ config )
@@ -207,6 +208,7 @@ public function setConfig($config)
207
208
* event will relate
208
209
*
209
210
* @param string $url
211
+ * @throws Zend_Feed_Pubsubhubbub_Exception
210
212
* @return Zend_Feed_Pubsubhubbub_Subscriber
211
213
*/
212
214
public function setTopicUrl ($ url )
@@ -225,6 +227,7 @@ public function setTopicUrl($url)
225
227
* Set the topic URL (RSS or Atom feed) to which the intended (un)subscribe
226
228
* event will relate
227
229
*
230
+ * @throws Zend_Feed_Pubsubhubbub_Exception
228
231
* @return string
229
232
*/
230
233
public function getTopicUrl ()
@@ -241,6 +244,7 @@ public function getTopicUrl()
241
244
* Set the number of seconds for which any subscription will remain valid
242
245
*
243
246
* @param int $seconds
247
+ * @throws Zend_Feed_Pubsubhubbub_Exception
244
248
* @return Zend_Feed_Pubsubhubbub_Subscriber
245
249
*/
246
250
public function setLeaseSeconds ($ seconds )
@@ -270,6 +274,7 @@ public function getLeaseSeconds()
270
274
* this Subscriber
271
275
*
272
276
* @param string $url
277
+ * @throws Zend_Feed_Pubsubhubbub_Exception
273
278
* @return Zend_Feed_Pubsubhubbub_Subscriber
274
279
*/
275
280
public function setCallbackUrl ($ url )
@@ -288,6 +293,7 @@ public function setCallbackUrl($url)
288
293
* Get the callback URL to be used by Hub Servers when communicating with
289
294
* this Subscriber
290
295
*
296
+ * @throws Zend_Feed_Pubsubhubbub_Exception
291
297
* @return string
292
298
*/
293
299
public function getCallbackUrl ()
@@ -309,6 +315,7 @@ public function getCallbackUrl()
309
315
* order of occurance in the parameter list determines this preference.
310
316
*
311
317
* @param string $mode Should be 'sync' or 'async'
318
+ * @throws Zend_Feed_Pubsubhubbub_Exception
312
319
* @return Zend_Feed_Pubsubhubbub_Subscriber
313
320
*/
314
321
public function setPreferredVerificationMode ($ mode )
@@ -339,6 +346,7 @@ public function getPreferredVerificationMode()
339
346
* Add a Hub Server URL supported by Publisher
340
347
*
341
348
* @param string $url
349
+ * @throws Zend_Feed_Pubsubhubbub_Exception
342
350
* @return Zend_Feed_Pubsubhubbub_Subscriber
343
351
*/
344
352
public function addHubUrl ($ url )
@@ -398,7 +406,8 @@ public function getHubUrls()
398
406
* Add authentication credentials for a given URL
399
407
*
400
408
* @param string $url
401
- * @param array $authentication
409
+ * @param array $authentication
410
+ * @throws Zend_Feed_Pubsubhubbub_Exception
402
411
* @return Zend_Feed_Pubsubhubbub_Subscriber
403
412
*/
404
413
public function addAuthentication ($ url , array $ authentication )
@@ -452,8 +461,9 @@ public function usePathParameter($bool = true)
452
461
/**
453
462
* Add an optional parameter to the (un)subscribe requests
454
463
*
455
- * @param string $name
464
+ * @param string $name
456
465
* @param string|null $value
466
+ * @throws Zend_Feed_Pubsubhubbub_Exception
457
467
* @return Zend_Feed_Pubsubhubbub_Subscriber
458
468
*/
459
469
public function setParameter ($ name , $ value = null )
@@ -483,8 +493,8 @@ public function setParameter($name, $value = null)
483
493
/**
484
494
* Add an optional parameter to the (un)subscribe requests
485
495
*
486
- * @param string $name
487
- * @param string|null $value
496
+ * @param array $parameters
497
+ * @throws Zend_Feed_Pubsubhubbub_Exception
488
498
* @return Zend_Feed_Pubsubhubbub_Subscriber
489
499
*/
490
500
public function setParameters (array $ parameters )
@@ -499,6 +509,7 @@ public function setParameters(array $parameters)
499
509
* Remove an optional parameter for the (un)subscribe requests
500
510
*
501
511
* @param string $name
512
+ * @throws Zend_Feed_Pubsubhubbub_Exception
502
513
* @return Zend_Feed_Pubsubhubbub_Subscriber
503
514
*/
504
515
public function removeParameter ($ name )
@@ -542,6 +553,7 @@ public function setStorage(Zend_Feed_Pubsubhubbub_Model_SubscriptionInterface $s
542
553
* to background save any verification tokens associated with a subscription
543
554
* or other.
544
555
*
556
+ * @throws Zend_Feed_Pubsubhubbub_Exception
545
557
* @return Zend_Feed_Pubsubhubbub_Model_SubscriptionInterface
546
558
*/
547
559
public function getStorage ()
@@ -557,8 +569,6 @@ public function getStorage()
557
569
/**
558
570
* Subscribe to one or more Hub Servers using the stored Hub URLs
559
571
* for the given Topic URL (RSS or Atom feed)
560
- *
561
- * @return void
562
572
*/
563
573
public function subscribeAll ()
564
574
{
@@ -568,8 +578,6 @@ public function subscribeAll()
568
578
/**
569
579
* Unsubscribe from one or more Hub Servers using the stored Hub URLs
570
580
* for the given Topic URL (RSS or Atom feed)
571
- *
572
- * @return void
573
581
*/
574
582
public function unsubscribeAll ()
575
583
{
@@ -619,7 +627,8 @@ public function getAsyncHubs()
619
627
* Executes an (un)subscribe request
620
628
*
621
629
* @param string $mode
622
- * @return void
630
+ * @throws Zend_Feed_Pubsubhubbub_Exception
631
+ * @throws Zend_Http_Client_Exception
623
632
*/
624
633
protected function _doRequest ($ mode )
625
634
{
@@ -669,7 +678,6 @@ protected function _doRequest($mode)
669
678
/**
670
679
* Get a basic prepared HTTP client for use
671
680
*
672
- * @param string $mode Must be "subscribe" or "unsubscribe"
673
681
* @return Zend_Http_Client
674
682
*/
675
683
protected function _getHttpClient ()
@@ -686,7 +694,8 @@ protected function _getHttpClient()
686
694
* client's POST body that are specific to the current Hub Server URL
687
695
*
688
696
* @param string $hubUrl
689
- * @param mode $hubUrl
697
+ * @param string $mode
698
+ * @throws Zend_Feed_Pubsubhubbub_Exception
690
699
* @return string
691
700
*/
692
701
protected function _getRequestParameters ($ hubUrl , $ mode )
@@ -776,7 +785,6 @@ protected function _getRequestParameters($hubUrl, $mode)
776
785
* requests to a Hub Server. Follows no particular method, which means
777
786
* it might be improved/changed in future.
778
787
*
779
- * @param string $hubUrl The Hub Server URL for which this token will apply
780
788
* @return string
781
789
*/
782
790
protected function _generateVerifyToken ()
@@ -791,6 +799,7 @@ protected function _generateVerifyToken()
791
799
* Simple helper to generate a verification token used in (un)subscribe
792
800
* requests to a Hub Server.
793
801
*
802
+ * @param array $params
794
803
* @param string $hubUrl The Hub Server URL for which this token will apply
795
804
* @return string
796
805
*/
0 commit comments