1 | <?php |
||
7 | class Parser |
||
8 | { |
||
9 | /** |
||
10 | * XML content. |
||
11 | * |
||
12 | * @var string |
||
13 | */ |
||
14 | public $xml; |
||
15 | /** |
||
16 | * Tag names for 'to property conversion' |
||
17 | * |
||
18 | * @var string[] |
||
19 | */ |
||
20 | public $convertToAttribute = [ |
||
21 | 'properties', |
||
22 | 'options', |
||
23 | 'features', |
||
24 | 'rows', |
||
25 | ]; |
||
26 | /** |
||
27 | * Children property. |
||
28 | * |
||
29 | * @var string |
||
30 | */ |
||
31 | public $childrenProperty = 'children'; |
||
32 | /** |
||
33 | * XML parser. |
||
34 | * |
||
35 | * @var \XMLReader |
||
36 | */ |
||
37 | protected $reader; |
||
38 | |||
39 | /** |
||
40 | * Convert. |
||
41 | * |
||
42 | * @return Node |
||
43 | */ |
||
44 | public function process() |
||
110 | |||
111 | /** |
||
112 | * @return \XMLReader |
||
113 | */ |
||
114 | protected function getReader() |
||
121 | |||
122 | } |
||
123 |
According to the PSR-2, the body of a case statement must start on the line immediately following the case statement.
}
To learn more about the PSR-2 coding standard, please refer to the PHP-Fig.