Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 6 |
|
0.00% |
0 / 4 |
CRAP | |
0.00% |
0 / 1 |
ParseError | |
0.00% |
0 / 6 |
|
0.00% |
0 / 4 |
20 | |
0.00% |
0 / 1 |
__construct | |
0.00% |
0 / 3 |
|
0.00% |
0 / 1 |
2 | |||
getLine | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
getInput | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
getError | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | |
3 | namespace MediaWiki\TimedMediaHandler\TimedText; |
4 | |
5 | class ParseError { |
6 | /** @var int */ |
7 | protected $line; |
8 | /** @var string */ |
9 | protected $input; |
10 | /** @var string */ |
11 | protected $error; |
12 | |
13 | /** |
14 | * @param int $line |
15 | * @param string $input |
16 | * @param string $error |
17 | */ |
18 | public function __construct( $line, $input, $error ) { |
19 | $this->line = (int)$line; |
20 | $this->input = (string)$input; |
21 | $this->error = (string)$error; |
22 | } |
23 | |
24 | /** |
25 | * @return int |
26 | */ |
27 | public function getLine() { |
28 | return $this->line; |
29 | } |
30 | |
31 | /** |
32 | * @return string |
33 | */ |
34 | public function getInput() { |
35 | return $this->input; |
36 | } |
37 | |
38 | /** |
39 | * @return string |
40 | */ |
41 | public function getError() { |
42 | return $this->error; |
43 | } |
44 | } |