Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 2
CRAP
0.00% covered (danger)
0.00%
0 / 1
NullBabelBox
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 2
6
0.00% covered (danger)
0.00%
0 / 1
 render
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 addCategories
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2/**
3 * Contains code for inner items which render as empty strings.
4 *
5 * @file
6 * @license GPL-2.0-or-later
7 */
8
9declare( strict_types = 1 );
10
11namespace MediaWiki\Babel\BabelBox;
12
13use MediaWiki\Parser\ParserOutput;
14
15/**
16 * Class for inner items which render as empty strings.
17 */
18class NullBabelBox implements BabelBox {
19
20    /**
21     * Return the babel box code.
22     *
23     * @return string Empty string
24     */
25    public function render(): string {
26        return '';
27    }
28
29    public function addCategories( ParserOutput $parserOutput ): void {
30    }
31
32}