Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
TemplateStylesContent | |
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\TemplateStyles; |
4 | |
5 | use MediaWiki\Content\TextContent; |
6 | |
7 | /** |
8 | * @file |
9 | * @license GPL-2.0-or-later |
10 | */ |
11 | |
12 | /** |
13 | * Content object for sanitized CSS. |
14 | */ |
15 | class TemplateStylesContent extends TextContent { |
16 | |
17 | /** |
18 | * @param string $text |
19 | * @param string $modelId |
20 | */ |
21 | public function __construct( $text, $modelId = 'sanitized-css' ) { |
22 | parent::__construct( $text, $modelId ); |
23 | } |
24 | } |