Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
TemplateStylesContent
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 __construct
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3namespace MediaWiki\Extension\TemplateStyles;
4
5use MediaWiki\Content\TextContent;
6
7/**
8 * @file
9 * @license GPL-2.0-or-later
10 */
11
12/**
13 * Content object for sanitized CSS.
14 */
15class 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}