Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
DTState | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
__construct | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | declare( strict_types = 1 ); |
3 | |
4 | namespace Wikimedia\Parsoid\Utils; |
5 | |
6 | use stdClass; |
7 | |
8 | /** |
9 | * State carried while DOM Traversing |
10 | */ |
11 | class DTState { |
12 | /** |
13 | * @var array |
14 | */ |
15 | public $options; |
16 | |
17 | /** |
18 | * @var bool |
19 | */ |
20 | public $atTopLevel; |
21 | |
22 | /** |
23 | * @var stdClass|null |
24 | */ |
25 | public $tplInfo; |
26 | |
27 | /** |
28 | * @param array $options |
29 | * @param bool $atTopLevel |
30 | */ |
31 | public function __construct( array $options = [], bool $atTopLevel = false ) { |
32 | $this->options = $options; |
33 | $this->atTopLevel = $atTopLevel; |
34 | } |
35 | } |