Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
TimestampNode | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
__construct | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | |
3 | namespace MediaWiki\TimedMediaHandler\TimedText\DOM; |
4 | |
5 | /** |
6 | * WebVTT Timestamp object, maps to a processor directive |
7 | */ |
8 | class TimestampNode extends LeafNode { |
9 | /** @var float timestamp in seconds */ |
10 | public $timestamp = 0.0; |
11 | |
12 | /** |
13 | * @param float $timestamp |
14 | */ |
15 | public function __construct( $timestamp = 0.0 ) { |
16 | $this->timestamp = floatval( $timestamp ); |
17 | } |
18 | } |