1 | <?php |
||
11 | class StringNode extends ANode |
||
12 | { |
||
13 | /** |
||
14 | * Real constructor. |
||
15 | * |
||
16 | * @access protected |
||
17 | * |
||
18 | * @return \Htsl\Parser\Node\Contracts\ANode |
||
|
|||
19 | */ |
||
20 | protected function construct():parent |
||
24 | |||
25 | /** |
||
26 | * Opening this node, and returning node opener. |
||
27 | * |
||
28 | * @access public |
||
29 | * |
||
30 | * @return string |
||
31 | */ |
||
32 | public function open():string |
||
36 | |||
37 | /** |
||
38 | * Close this node, and returning node closer. |
||
39 | * |
||
40 | * @access public |
||
41 | * |
||
42 | * @param \Htsl\ReadingBuffer\Line $closerLine The line when node closed. |
||
43 | * |
||
44 | * @return string |
||
45 | */ |
||
46 | public function close( Line$closerLine ):string |
||
50 | } |
||
51 |
This check looks for the generic type
array
as a return type and suggests a more specific type. This type is inferred from the actual code.