Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 2 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 1 |
VoiceNode | |
0.00% |
0 / 2 |
|
0.00% |
0 / 2 |
6 | |
0.00% |
0 / 1 |
__construct | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
getVoice | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | |
3 | namespace MediaWiki\TimedMediaHandler\TimedText\DOM; |
4 | |
5 | /** |
6 | * WebVTT Voice object, maps roughly to an HTML span with speaker info. |
7 | */ |
8 | class VoiceNode extends InternalNode { |
9 | /** |
10 | * @param string $voice |
11 | */ |
12 | public function __construct( $voice = '' ) { |
13 | $this->annotation = strval( $voice ); |
14 | } |
15 | |
16 | /** |
17 | * @return string |
18 | */ |
19 | public function getVoice() { |
20 | return $this->annotation; |
21 | } |
22 | } |