Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
MMLmtable | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
__construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 |
1 | <?php |
2 | |
3 | namespace MediaWiki\Extension\Math\WikiTexVC\MMLnodes; |
4 | |
5 | use MediaWiki\Extension\Math\WikiTexVC\MMLmappings\TexConstants\TexClass; |
6 | |
7 | /** |
8 | * Presentation MathML 3 Element |
9 | * name: "mtable" |
10 | * description: "Table or Matrix" |
11 | * category: "Tables and Matrices" |
12 | */ |
13 | class MMLmtable extends MMLbase { |
14 | |
15 | /** defaults to mtable args as generated from MathJax for align(ed) environment |
16 | */ |
17 | public function __construct( |
18 | string $texclass = TexClass::ORD, |
19 | array $attributes = [ |
20 | 'columnalign' => 'right left right left right left right left right left right left', |
21 | 'columnspacing' => '0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em', |
22 | 'displaystyle' => 'true', |
23 | 'rowspacing' => '3pt' |
24 | ], |
25 | MMLmtr ...$rows ) { |
26 | parent::__construct( "mtable", $texclass, $attributes, ...$rows ); |
27 | } |
28 | } |