Zend Framework

phpdoc improvements for backends

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Trivial Trivial
  • Resolution: Fixed
  • Affects Version/s: 1.10.3
  • Fix Version/s: 1.10.7
  • Component/s: Zend_Cache
  • Labels:
    None

Description

Only a minor improvement, but it improves IDE integration.

Index: Zend/Cache/Backend/TwoLevels.php                                           
===================================================================               
--- Zend/Cache/Backend/TwoLevels.php    (revision 21978)                          
+++ Zend/Cache/Backend/TwoLevels.php    (working copy)                            
@@ -93,14 +93,14 @@                                                               
     /**                                                                          
      * Slow Backend                                                              
      *                                                                           
-     * @var Zend_Cache_Backend                                                   
+     * @var Zend_Cache_Backend_ExtendedInterface                                 
      */                                                                          
     protected $_slowBackend;                                                     
                                                                                  
     /**                                                                          
      * Fast Backend                                                              
      *                                                                           
-     * @var Zend_Cache_Backend                                                   
+     * @var Zend_Cache_Backend_ExtendedInterface                                 
      */                                                                          
     protected $_fastBackend;                                                     
                                                                                  
Index: Zend/Cache/Core.php                                                        
===================================================================               
--- Zend/Cache/Core.php (revision 21978)                                          
+++ Zend/Cache/Core.php (working copy)                                            
@@ -36,7 +36,7 @@                                                                 
     /**                                                                          
      * Backend Object                                                            
      *                                                                           
-     * @var object $_backend                                                     
+     * @var Zend_Cache_Backend_Interface $_backend                               
      */                                                                          
     protected $_backend = null;                                                  
                                                                                  
@@ -191,7 +191,7 @@                                                               
     /**                                                                          
      * Returns the backend                                                       
      *                                                                           
-     * @return object backend object                                             
+     * @return Zend_Cache_Backend_Interface object backend object                
      */                                                                          
     public function getBackend()                                                 
     {

Activity

Hide
Marc Bennewitz (private) added a comment -

patch applied in r22505 (trunk) & r22506 (1.10 branch) with a small change.
-> Zend_Cache_Core allows an instance of Zend_Cache_Backend no interface check (this is probably a design failure)

Show
Marc Bennewitz (private) added a comment - patch applied in r22505 (trunk) & r22506 (1.10 branch) with a small change. -> Zend_Cache_Core allows an instance of Zend_Cache_Backend no interface check (this is probably a design failure)

People

Vote (0)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: