@@ -20,7 +20,7 @@ |
||
20 | 20 | /** |
21 | 21 | * Asserts that a condition is true. |
22 | 22 | * |
23 | - * @param array $expected |
|
23 | + * @param string[] $expected |
|
24 | 24 | * @param string $actual |
25 | 25 | * @param string $message |
26 | 26 | * |
@@ -55,6 +55,9 @@ discard block |
||
55 | 55 | return true; |
56 | 56 | } |
57 | 57 | |
58 | + /** |
|
59 | + * @param integer $pos |
|
60 | + */ |
|
58 | 61 | public function replaceRepresentation(Representation $rep, $pos = null) |
59 | 62 | { |
60 | 63 | if ($pos === null) { |
@@ -74,6 +77,9 @@ discard block |
||
74 | 77 | } |
75 | 78 | } |
76 | 79 | |
80 | + /** |
|
81 | + * @param string $name |
|
82 | + */ |
|
77 | 83 | public function getRepresentation($name) |
78 | 84 | { |
79 | 85 | if (isset($this->representations[$name])) { |
@@ -79,6 +79,9 @@ |
||
79 | 79 | return strlen($string); |
80 | 80 | } |
81 | 81 | |
82 | + /** |
|
83 | + * @param integer $start |
|
84 | + */ |
|
82 | 85 | public static function substr($string, $start, $length = null, $encoding = false) |
83 | 86 | { |
84 | 87 | if (extension_loaded('mbstring')) { |
@@ -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; |
@@ -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 |
@@ -59,6 +59,10 @@ |
||
59 | 59 | $o->addRepresentation($r, 0); |
60 | 60 | } |
61 | 61 | |
62 | + /** |
|
63 | + * @param string $var |
|
64 | + * @param string|null $parent_path |
|
65 | + */ |
|
62 | 66 | protected static function xmlToSimpleXML($var, $parent_path) |
63 | 67 | { |
64 | 68 | try { |
@@ -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 | } |