1 | <?php |
||
11 | class CommentNode extends ANode |
||
12 | { |
||
13 | /** |
||
14 | * Whether the comment is html comment. |
||
15 | * |
||
16 | * @access private |
||
17 | * |
||
18 | * @var bool |
||
19 | */ |
||
20 | private $htmlComment; |
||
21 | |||
22 | /** |
||
23 | * Real contructor. |
||
24 | * |
||
25 | * @access protected |
||
26 | * |
||
27 | * @return \Htsl\Parser\Node\Contracts\ANode |
||
|
|||
28 | */ |
||
29 | protected function construct():parent |
||
34 | |||
35 | /** |
||
36 | * Opening this node, and returning node opener. |
||
37 | * |
||
38 | * @access public |
||
39 | * |
||
40 | * @return string |
||
41 | */ |
||
42 | public function open():string |
||
48 | |||
49 | /** |
||
50 | * Close this node, and returning node closer. |
||
51 | * |
||
52 | * @access public |
||
53 | * |
||
54 | * @param \Htsl\ReadingBuffer\Line $closerLine The line when node closed. |
||
55 | * |
||
56 | * @return string |
||
57 | */ |
||
58 | public function close( Line$closerLine ):string |
||
62 | } |
||
63 |
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.