@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | * Create the Node object and parses $nodeString IF not null (else assume a root type Node) |
33 | 33 | * |
34 | 34 | * @param string|null $nodeString The node string |
35 | - * @param int|null $line The line |
|
35 | + * @param integer $line The line |
|
36 | 36 | */ |
37 | 37 | public function __construct($nodeString = null, $line = 0) |
38 | 38 | { |
@@ -200,12 +200,18 @@ discard block |
||
200 | 200 | } |
201 | 201 | } |
202 | 202 | |
203 | + /** |
|
204 | + * @param string $nodeValue |
|
205 | + */ |
|
203 | 206 | private function onQuoted($nodeValue) |
204 | 207 | { |
205 | 208 | $this->type = R::isProperlyQuoted($nodeValue) ? Y::QUOTED : Y::PARTIAL; |
206 | 209 | $this->value = $nodeValue; |
207 | 210 | } |
208 | 211 | |
212 | + /** |
|
213 | + * @param string $nodeValue |
|
214 | + */ |
|
209 | 215 | private function onSetElement($nodeValue) |
210 | 216 | { |
211 | 217 | $this->type = $nodeValue[0] === '?' ? Y::SET_KEY : Y::SET_VALUE; |
@@ -220,7 +226,7 @@ discard block |
||
220 | 226 | * Process when a "key: value" syntax is found in the parsed string |
221 | 227 | * Note : key is match 1, value is match 2 as per regex from R::KEY |
222 | 228 | * |
223 | - * @param array $matches The matches provided by 'preg_match' function in Node::parse |
|
229 | + * @param string[] $matches The matches provided by 'preg_match' function in Node::parse |
|
224 | 230 | */ |
225 | 231 | private function onKey(array $matches) |
226 | 232 | { |