@@ -13,6 +13,9 @@ |
||
13 | 13 | protected $s; |
14 | 14 | protected $type; |
15 | 15 | |
16 | + /** |
|
17 | + * @param string $s |
|
18 | + */ |
|
16 | 19 | function __construct($s, $type = self::TOKEN_HTML) { |
17 | 20 | $this->s = str_replace('\\$', "$", $s); |
18 | 21 | $this->type = $type; |
@@ -13,6 +13,9 @@ |
||
13 | 13 | protected $s; |
14 | 14 | protected $type; |
15 | 15 | |
16 | + /** |
|
17 | + * @param string $s |
|
18 | + */ |
|
16 | 19 | function __construct($s, $type = self::TOKEN_HTML) { |
17 | 20 | $this->s = str_replace('\\$', "$", $s); |
18 | 21 | $this->type = $type; |
@@ -13,6 +13,9 @@ |
||
13 | 13 | protected $s; |
14 | 14 | protected $type; |
15 | 15 | |
16 | + /** |
|
17 | + * @param string $s |
|
18 | + */ |
|
16 | 19 | function __construct($s, $type = self::TOKEN_HTML) { |
17 | 20 | $this->s = str_replace('\\$', "$", $s); |
18 | 21 | $this->type = $type; |
@@ -92,6 +92,9 @@ discard block |
||
92 | 92 | } |
93 | 93 | } |
94 | 94 | |
95 | + /** |
|
96 | + * @param string $s |
|
97 | + */ |
|
95 | 98 | function parseSnip($s) { |
96 | 99 | //save root tags |
97 | 100 | /** @var Tag[] $roots */ |
@@ -223,6 +226,9 @@ discard block |
||
223 | 226 | } |
224 | 227 | } |
225 | 228 | |
229 | + /** |
|
230 | + * @param string $qs |
|
231 | + */ |
|
226 | 232 | function parseQueryString($qs) { |
227 | 233 | $out = []; |
228 | 234 | foreach(explode('&',$qs) as $s) { |
@@ -240,6 +246,9 @@ discard block |
||
240 | 246 | |
241 | 247 | } |
242 | 248 | |
249 | + /** |
|
250 | + * @param integer $indent |
|
251 | + */ |
|
243 | 252 | function consumeBlock($indent) { |
244 | 253 | $out = array(); |
245 | 254 | $m = array(); |
@@ -254,6 +263,9 @@ discard block |
||
254 | 263 | return $out; |
255 | 264 | } |
256 | 265 | |
266 | + /** |
|
267 | + * @param integer $indent |
|
268 | + */ |
|
257 | 269 | function indentLevel($indent) { |
258 | 270 | if (!isset($this->indents)) $this->indents = array(); |
259 | 271 | if (!count($this->indents)) { |