Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
2 / 2 |
|
100.00% |
2 / 2 |
CRAP | |
100.00% |
1 / 1 |
| MMLmerror | |
100.00% |
2 / 2 |
|
100.00% |
2 / 2 |
2 | |
100.00% |
1 / 1 |
| __construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| newFromText | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | namespace MediaWiki\Extension\Math\WikiTexVC\MMLnodes; |
| 4 | |
| 5 | /** |
| 6 | * Presentation MathML 3 Element |
| 7 | * name: "merror" |
| 8 | * description: "enclose a syntax error message from a preprocessor" |
| 9 | * category: "General Layout Schemata" |
| 10 | */ |
| 11 | class MMLmerror extends MMLbase { |
| 12 | |
| 13 | /** @inheritDoc */ |
| 14 | public function __construct( string $texclass = "", array $attributes = [], ...$children ) { |
| 15 | parent::__construct( "merror", $texclass, $attributes, ...$children ); |
| 16 | } |
| 17 | |
| 18 | public static function newFromText( string $message ): MMLmerror { |
| 19 | return new MMLmerror( "", [], new MMLmtext( '', [], $message ) ); |
| 20 | } |
| 21 | } |