1 | <?php |
||
17 | class PHP implements Language |
||
18 | { |
||
19 | /** |
||
20 | * @var resource |
||
21 | */ |
||
22 | protected $fp; |
||
23 | |||
24 | /** |
||
25 | * @var resource |
||
26 | */ |
||
27 | protected $hp; |
||
28 | |||
29 | /** |
||
30 | * @var string |
||
31 | */ |
||
32 | protected $fileBuffer = ''; |
||
33 | |||
34 | /** |
||
35 | * @var string |
||
36 | */ |
||
37 | protected $headerBuffer = ''; |
||
38 | |||
39 | /** |
||
40 | * @param $file |
||
41 | * @param $headerFile |
||
42 | */ |
||
43 | public function begin($file, $headerFile) |
||
50 | |||
51 | /** |
||
52 | * @return void |
||
53 | */ |
||
54 | public function commit() |
||
62 | |||
63 | /** |
||
64 | * @param string $text |
||
65 | */ |
||
66 | public function inline_comment(string $text) |
||
70 | |||
71 | /** |
||
72 | * @param string $text |
||
73 | */ |
||
74 | public function comment(string $text) |
||
78 | |||
79 | /** |
||
80 | * @param string $indent |
||
81 | * @param int $num |
||
82 | * @param string $value |
||
83 | */ |
||
84 | public function case_block(string $indent, int $num, string $value) |
||
88 | |||
89 | /** |
||
90 | * @param string $text |
||
91 | * @param bool $includeHeader |
||
92 | */ |
||
93 | public function write(string $text, bool $includeHeader = false) |
||
100 | |||
101 | /** |
||
102 | * @param string $text |
||
103 | */ |
||
104 | public function writeQuoted(string $text) |
||
119 | } |
||
120 |