Explorar o código

Adds some extra code comments in Zend_Log

frank %!s(int64=10) %!d(string=hai) anos
pai
achega
98e85ec535
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      library/Zend/Log.php

+ 3 - 0
library/Zend/Log.php

@@ -361,6 +361,7 @@ class Zend_Log
      */
     public function __destruct()
     {
+        /** @var Zend_Log_Writer_Abstract $writer */
         foreach($this->_writers as $writer) {
             $writer->shutdown();
         }
@@ -450,6 +451,7 @@ class Zend_Log
         }
 
         // abort if rejected by the global filters
+        /** @var Zend_Log_Filter_Interface $filter */
         foreach ($this->_filters as $filter) {
             if (! $filter->accept($event)) {
                 return;
@@ -457,6 +459,7 @@ class Zend_Log
         }
 
         // send to each writer
+        /** @var Zend_Log_Writer_Abstract $writer */
         foreach ($this->_writers as $writer) {
             $writer->write($event);
         }