ZF-9741: phpdoc improvements for backends
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()
{
Comments
Posted by Marc Bennewitz (private) (mabe) on 2010-06-30T10:23:45.000+0000
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)