Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
| 1 | <?php |
| 2 | /** |
| 3 | * Contains interface code. |
| 4 | * |
| 5 | * @file |
| 6 | * @license GPL-2.0-or-later |
| 7 | */ |
| 8 | |
| 9 | declare( strict_types = 1 ); |
| 10 | |
| 11 | namespace MediaWiki\Babel\BabelBox; |
| 12 | |
| 13 | use MediaWiki\Parser\ParserOutput; |
| 14 | |
| 15 | /** |
| 16 | * Interface for babel boxes. |
| 17 | */ |
| 18 | interface BabelBox { |
| 19 | |
| 20 | /** |
| 21 | * Return the babel box code. |
| 22 | * |
| 23 | * @return string HTML |
| 24 | */ |
| 25 | public function render(): string; |
| 26 | |
| 27 | /** |
| 28 | * Adds categories to the given ParserOutput. |
| 29 | * |
| 30 | * @param ParserOutput $output Parser output to add categories to |
| 31 | */ |
| 32 | public function addCategories( ParserOutput $output ): void; |
| 33 | |
| 34 | } |