Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
InternalNode | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
appendNode | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | |
3 | namespace MediaWiki\TimedMediaHandler\TimedText\DOM; |
4 | |
5 | /** |
6 | * WebVTT internal node object parent class. |
7 | * Internal nodes can contain other nodes, |
8 | * and map roughly to HTML elements. |
9 | */ |
10 | class InternalNode extends Node { |
11 | /** @var string[] list of classes, if any */ |
12 | public $classes = []; |
13 | |
14 | /** @var string list of annotations, if any */ |
15 | public $annotation = ''; |
16 | |
17 | /** @var Node[] list of contained nodes */ |
18 | public $nodes = []; |
19 | |
20 | /** |
21 | * @param Node $node |
22 | */ |
23 | public function appendNode( Node $node ) { |
24 | $this->nodes[] = $node; |
25 | } |
26 | } |