@@ -13,6 +13,11 @@ |
||
| 13 | 13 | public $mem_peak_real = null; |
| 14 | 14 | public $hints = array('microtime'); |
| 15 | 15 | |
| 16 | + /** |
|
| 17 | + * @param integer $group |
|
| 18 | + * @param double $lap |
|
| 19 | + * @param double $total |
|
| 20 | + */ |
|
| 16 | 21 | public function __construct($group, $lap = null, $total = null, $i = 0) |
| 17 | 22 | { |
| 18 | 23 | parent::__construct('Microtime'); |
@@ -11,6 +11,10 @@ |
||
| 11 | 11 | |
| 12 | 12 | protected $name; |
| 13 | 13 | |
| 14 | + /** |
|
| 15 | + * @param string $label |
|
| 16 | + * @param string $name |
|
| 17 | + */ |
|
| 14 | 18 | public function __construct($label, $name = null) |
| 15 | 19 | { |
| 16 | 20 | $this->label = $label; |
@@ -145,6 +145,9 @@ |
||
| 145 | 145 | return "<a {$class}href=\"{$ideLink}\">{$shortenedPath}:{$line}</a>"; |
| 146 | 146 | } |
| 147 | 147 | |
| 148 | + /** |
|
| 149 | + * @param string $string |
|
| 150 | + */ |
|
| 148 | 151 | public function escape($string, $encoding = false) |
| 149 | 152 | { |
| 150 | 153 | if ($encoding === false) { |
@@ -6,5 +6,8 @@ |
||
| 6 | 6 | |
| 7 | 7 | interface ObjectPluginInterface extends PluginInterface |
| 8 | 8 | { |
| 9 | + /** |
|
| 10 | + * @return string|null |
|
| 11 | + */ |
|
| 9 | 12 | public function renderObject(BasicObject $o); |
| 10 | 13 | } |
@@ -6,5 +6,8 @@ |
||
| 6 | 6 | |
| 7 | 7 | interface PluginInterface |
| 8 | 8 | { |
| 9 | + /** |
|
| 10 | + * @return void |
|
| 11 | + */ |
|
| 9 | 12 | public function __construct(RichRenderer $r); |
| 10 | 13 | } |
@@ -103,6 +103,9 @@ |
||
| 103 | 103 | return $out; |
| 104 | 104 | } |
| 105 | 105 | |
| 106 | + /** |
|
| 107 | + * @param integer $width |
|
| 108 | + */ |
|
| 106 | 109 | public function boxText($text, $width) |
| 107 | 110 | { |
| 108 | 111 | if (BlobObject::strlen($text) > $width - 4) { |
@@ -50,6 +50,9 @@ |
||
| 50 | 50 | } |
| 51 | 51 | } |
| 52 | 52 | |
| 53 | + /** |
|
| 54 | + * @param BasicObject $o |
|
| 55 | + */ |
|
| 53 | 56 | protected function blacklist(&$var, &$o) |
| 54 | 57 | { |
| 55 | 58 | $object = $o->transplant(new InstanceObject()); |
@@ -135,6 +135,9 @@ discard block |
||
| 135 | 135 | } |
| 136 | 136 | } |
| 137 | 137 | |
| 138 | + /** |
|
| 139 | + * @param DOMNode $var |
|
| 140 | + */ |
|
| 138 | 141 | protected function parseNode(&$var, InstanceObject &$o) |
| 139 | 142 | { |
| 140 | 143 | // Fill the properties |
@@ -240,6 +243,9 @@ discard block |
||
| 240 | 243 | } |
| 241 | 244 | } |
| 242 | 245 | |
| 246 | + /** |
|
| 247 | + * @param string $prop |
|
| 248 | + */ |
|
| 243 | 249 | protected function parseProperty(InstanceObject $o, $prop, &$var) |
| 244 | 250 | { |
| 245 | 251 | // Duplicating (And slightly optimizing) the Parser::parseObject() code here |