1 | <?php |
||
12 | abstract class Format |
||
13 | { |
||
14 | /** |
||
15 | * @var int $tabSize |
||
16 | */ |
||
17 | private static $tabSize = 4; |
||
18 | |||
19 | /** |
||
20 | * @param string $string |
||
21 | * @param int $depth |
||
22 | * @return string |
||
23 | */ |
||
24 | 3 | public static function string($string, $depth) |
|
28 | |||
29 | /** |
||
30 | * @param int $tabSize |
||
31 | */ |
||
32 | 1 | public static function setTabSize($tabSize) |
|
36 | |||
37 | /** |
||
38 | * @param Node $node |
||
39 | * @param string $attributes |
||
40 | * @param int $depth |
||
41 | * @return string |
||
42 | */ |
||
43 | 3 | public static function begin(Node $node, $attributes, $depth) |
|
47 | |||
48 | /** |
||
49 | * @param Node $node |
||
50 | * @param int $depth |
||
51 | * @return string |
||
52 | */ |
||
53 | 3 | public static function end(Node $node, $depth) |
|
57 | } |
||
58 |