@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | |
72 | 72 | /** |
73 | 73 | * Create a new logger hierarchy. |
74 | - * @param object $root the root logger |
|
74 | + * @param LoggerRoot $root the root logger |
|
75 | 75 | */ |
76 | 76 | public function __construct(LoggerRoot $root) { |
77 | 77 | $this->root = $root; |
@@ -107,7 +107,6 @@ discard block |
||
107 | 107 | * Return a new logger instance named as the first parameter using the default factory. |
108 | 108 | * |
109 | 109 | * @param string $name logger name |
110 | - * @param LoggerFactory $factory a {@link LoggerFactory} instance or null |
|
111 | 110 | * @return Logger |
112 | 111 | */ |
113 | 112 | public function getLogger($name) { |
@@ -78,8 +78,8 @@ discard block |
||
78 | 78 | /** |
79 | 79 | * Two priorities are equal if their level fields are equal. |
80 | 80 | * |
81 | - * @param object $o |
|
82 | - * @return boolean |
|
81 | + * @param LoggerLevel $o |
|
82 | + * @return boolean|null |
|
83 | 83 | */ |
84 | 84 | public function equals($o) { |
85 | 85 | if($o instanceof LoggerLevel) { |
@@ -220,8 +220,8 @@ discard block |
||
220 | 220 | * Convert the string passed as argument to a level. If the |
221 | 221 | * conversion fails, then this method returns a DEBUG Level. |
222 | 222 | * |
223 | - * @param mixed $arg |
|
224 | - * @param LoggerLevel $default |
|
223 | + * @param string $arg |
|
224 | + * @param LoggerLevel $defaultLevel |
|
225 | 225 | * @static |
226 | 226 | */ |
227 | 227 | public static function toLevel($arg, $defaultLevel = null) { |
@@ -62,7 +62,7 @@ |
||
62 | 62 | * Instantiate location information based on a {@link PHP_MANUAL#debug_backtrace}. |
63 | 63 | * |
64 | 64 | * @param array $trace |
65 | - * @param mixed $caller |
|
65 | + * @param string $fqcn |
|
66 | 66 | */ |
67 | 67 | public function __construct($trace, $fqcn = null) { |
68 | 68 | $this->lineNumber = isset($trace['line']) ? $trace['line'] : null; |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | * LoggerLoggingEvent are filled when actually needed. |
118 | 118 | * |
119 | 119 | * @param string $fqcn name of the caller class. |
120 | - * @param mixed $logger The {@link Logger} category of this event or the logger name. |
|
120 | + * @param Logger $logger The {@link Logger} category of this event or the logger name. |
|
121 | 121 | * @param LoggerLevel $priority The level of this event. |
122 | 122 | * @param mixed $message The message of this event. |
123 | 123 | * @param integer $timeStamp the timestamp of this logging event. |
@@ -249,6 +249,7 @@ discard block |
||
249 | 249 | /** |
250 | 250 | * Returns the the context corresponding to the <code>key</code> |
251 | 251 | * parameter. |
252 | + * @param string $key |
|
252 | 253 | * @return string |
253 | 254 | */ |
254 | 255 | public function getMDC($key) { |
@@ -304,7 +305,7 @@ discard block |
||
304 | 305 | |
305 | 306 | /** |
306 | 307 | * Calculates the time of this event. |
307 | - * @return the time after event starttime when this event has occured |
|
308 | + * @return string time after event starttime when this event has occured |
|
308 | 309 | */ |
309 | 310 | public function getTime() { |
310 | 311 | $eventTime = (float)$this->getTimeStamp(); |
@@ -47,6 +47,10 @@ discard block |
||
47 | 47 | * @static |
48 | 48 | */ |
49 | 49 | // TODO: check, if this is really useful |
50 | + |
|
51 | + /** |
|
52 | + * @param string $prefix |
|
53 | + */ |
|
50 | 54 | public static function setPropertiesByObject($obj, $properties, $prefix) { |
51 | 55 | $pSetter = new LoggerReflectionUtils($obj); |
52 | 56 | return $pSetter->setProperties($properties, $prefix); |
@@ -123,7 +127,7 @@ discard block |
||
123 | 127 | /** |
124 | 128 | * Creates an instances from the given class name. |
125 | 129 | * |
126 | - * @param string $classname |
|
130 | + * @param string $class |
|
127 | 131 | * @return an object from the class with the given classname |
128 | 132 | */ |
129 | 133 | public static function createObject($class) { |
@@ -58,7 +58,6 @@ discard block |
||
58 | 58 | * Add a renderer to a hierarchy passed as parameter. |
59 | 59 | * Note that hierarchy must implement getRendererMap() and setRenderer() methods. |
60 | 60 | * |
61 | - * @param LoggerHierarchy $repository a logger repository. |
|
62 | 61 | * @param string $renderedClassName |
63 | 62 | * @param string $renderingClassName |
64 | 63 | * @static |
@@ -108,7 +107,7 @@ discard block |
||
108 | 107 | * class of the object parameter. |
109 | 108 | * |
110 | 109 | * @param mixed $o |
111 | - * @return string |
|
110 | + * @return LoggerRendererObject |
|
112 | 111 | */ |
113 | 112 | public function getByObject($o) { |
114 | 113 | return ($o == null) ? null : $this->getByClassName(get_class($o)); |
@@ -98,7 +98,6 @@ |
||
98 | 98 | /** |
99 | 99 | * Render a background image over a rectangular area |
100 | 100 | * |
101 | - * @param string $img The background image to load |
|
102 | 101 | * @param float $x The left edge of the rectangular area |
103 | 102 | * @param float $y The top edge of the rectangular area |
104 | 103 | * @param float $width The width of the rectangular area |
@@ -106,6 +106,9 @@ |
||
106 | 106 | unset($this->_lines[$i]); |
107 | 107 | } |
108 | 108 | |
109 | + /** |
|
110 | + * @param integer $lineno |
|
111 | + */ |
|
109 | 112 | function set_line($lineno, $y = null, $w = null, $h = null) { |
110 | 113 | |
111 | 114 | if ( is_array($y) ) |
@@ -54,6 +54,10 @@ |
||
54 | 54 | */ |
55 | 55 | private function __construct() { } |
56 | 56 | |
57 | + /** |
|
58 | + * @param string $paper |
|
59 | + * @param string $orientation |
|
60 | + */ |
|
57 | 61 | static function get_instance($paper = null, $orientation = null, $class = null) { |
58 | 62 | |
59 | 63 | $backend = strtolower(DOMPDF_PDF_BACKEND); |