diff options
Diffstat (limited to 'Babel/includes/BabelBox/NullBabelBox.php')
-rw-r--r-- | Babel/includes/BabelBox/NullBabelBox.php | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/Babel/includes/BabelBox/NullBabelBox.php b/Babel/includes/BabelBox/NullBabelBox.php new file mode 100644 index 00000000..6f9dffcd --- /dev/null +++ b/Babel/includes/BabelBox/NullBabelBox.php @@ -0,0 +1,34 @@ +<?php +/** + * Contains code for inner items which render as empty strings. + * + * @file + * @license GPL-2.0-or-later + */ + +declare( strict_types = 1 ); + +namespace MediaWiki\Babel\BabelBox; + +/** + * Class for inner items which render as empty strings. + */ +class NullBabelBox implements BabelBox { + + /** + * Return the babel box code. + * + * @return string Empty string + */ + public function render(): string { + return ''; + } + + /** + * @return string[] + */ + public function getCategories(): array { + return []; + } + +} |