| 1 | <?php |
||
| 15 | class Output |
||
| 16 | { |
||
| 17 | use ExtendedArrayTrait; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var Node |
||
| 21 | */ |
||
| 22 | private $node; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var int |
||
| 26 | */ |
||
| 27 | private static $depth = 0; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Output constructor. |
||
| 31 | * |
||
| 32 | 2 | * @param Node $node |
|
| 33 | * @param int $depth |
||
| 34 | 2 | */ |
|
| 35 | 2 | public function __construct(Node $node, $depth = null) |
|
| 40 | |||
| 41 | 2 | /** |
|
| 42 | * @param int $depth |
||
| 43 | 2 | */ |
|
| 44 | 2 | public static function setDepth($depth) |
|
| 48 | 2 | ||
| 49 | /** |
||
| 50 | * @return string |
||
| 51 | */ |
||
| 52 | public function get() |
||
| 59 | |||
| 60 | /** |
||
| 61 | * @param int $tabSize |
||
| 62 | */ |
||
| 63 | 2 | public static function setTabSize($tabSize) |
|
| 67 | 1 | ||
| 68 | 2 | /** |
|
| 69 | * @param string $string |
||
| 70 | 2 | * @return null|string |
|
| 71 | */ |
||
| 72 | private function attributes($string = ' ') |
||
| 78 | } |
||
| 79 |