Просмотр исходного кода

Fixes DocBlocks in Zend_EventManager

Frank Brückner 11 лет назад
Родитель
Сommit
90f4f15458

+ 2 - 2
library/Zend/EventManager/EventManager.php

@@ -91,8 +91,8 @@ class Zend_EventManager_EventManager implements Zend_EventManager_EventCollectio
     /**
      * Set static collections container
      *
-     * @param  Zend_EventManager_StaticEventCollection $collections
-     * @return void
+     * @param  Zend_EventManager_SharedEventCollection $collections
+     * @return $this
      */
     public function setSharedCollections(Zend_EventManager_SharedEventCollection $collections)
     {

+ 5 - 5
library/Zend/EventManager/Filter/FilterIterator.php

@@ -90,11 +90,11 @@ class Zend_EventManager_Filter_FilterIterator extends Zend_Stdlib_SplPriorityQue
      * Iterate the next filter in the chain
      *
      * Iterates and calls the next filter in the chain.
-     * 
-     * @param  mixed $context 
-     * @param  array $params 
-     * @param  Zend_EventManager_Filter_FilterIterator $chain 
-     * @return void
+     *
+     * @param  mixed                                   $context
+     * @param  array                                   $params
+     * @param  Zend_EventManager_Filter_FilterIterator $chain
+     * @return mixed
      */
     public function next($context = null, array $params = array(), $chain = null)
     {

+ 3 - 2
library/Zend/EventManager/FilterChain.php

@@ -76,9 +76,10 @@ class Zend_EventManager_FilterChain implements Zend_EventManager_Filter
 
     /**
      * Connect a filter to the chain
-     * 
+     *
      * @param  callback $callback PHP Callback
-     * @param  int $priority Priority in the queue at which to execute; defaults to 1 (higher numbers == higher priority)
+     * @param  int      $priority Priority in the queue at which to execute; defaults to 1 (higher numbers == higher priority)
+     * @throws Zend_Stdlib_Exception_InvalidCallbackException
      * @return Zend_Stdlib_CallbackHandler (to allow later unsubscribe)
      */
     public function attach($callback, $priority = 1)

+ 2 - 2
library/Zend/EventManager/GlobalEventManager.php

@@ -52,8 +52,8 @@ class Zend_EventManager_GlobalEventManager
 
     /**
      * Get event collection on which this operates
-     * 
-     * @return void
+     *
+     * @return Zend_EventManager_EventCollection
      */
     public static function getEventCollection()
     {