Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 3 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
ParsedLine | |
0.00% |
0 / 3 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
__construct | |
0.00% |
0 / 3 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | declare( strict_types = 1 ); |
3 | |
4 | namespace Wikimedia\Parsoid\Ext\Gallery; |
5 | |
6 | use Wikimedia\Parsoid\DOM\Element; |
7 | |
8 | class ParsedLine { |
9 | |
10 | /** |
11 | * DOM node representing the thumbnail image. |
12 | * @var Element |
13 | */ |
14 | public $thumb; |
15 | |
16 | /** |
17 | * DOM node representing the caption (if any). |
18 | * @var ?Element |
19 | */ |
20 | public $gallerytext; |
21 | |
22 | /** |
23 | * The `typeof` the thumbnail image. |
24 | * @var string |
25 | */ |
26 | public $rdfaType; |
27 | |
28 | /** |
29 | * Construct a new ParsedLine object. |
30 | * @param Element $thumb |
31 | * @param ?Element $gallerytext |
32 | * @param string $rdfaType |
33 | */ |
34 | public function __construct( |
35 | Element $thumb, ?Element $gallerytext, string $rdfaType |
36 | ) { |
37 | $this->thumb = $thumb; |
38 | $this->gallerytext = $gallerytext; |
39 | $this->rdfaType = $rdfaType; |
40 | } |
41 | } |