Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
6 / 6
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
WikibaseLexemeLibrary
100.00% covered (success)
100.00%
6 / 6
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 register
100.00% covered (success)
100.00%
6 / 6
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3namespace Wikibase\Lexeme\MediaWiki\Scribunto;
4
5use MediaWiki\Extension\Scribunto\Engines\LuaCommon\LibraryBase;
6
7/**
8 * @license GPL-2.0-or-later
9 */
10class WikibaseLexemeLibrary extends LibraryBase {
11
12    /**
13     * Register the mw.wikibase.lexeme.lua library.
14     *
15     * @inheritDoc
16     */
17    public function register() {
18        // These functions will be exposed to the Lua module.
19        // They are member functions on a Lua table which is private to the module, thus
20        // these can't be called from user code, unless explicitly exposed in Lua.
21        $lib = [
22            // no functions right now (check out the git history if you want to add some)
23        ];
24
25        return $this->getEngine()->registerInterface(
26            __DIR__ . '/mw.wikibase.lexeme.lua', $lib, []
27        );
28    }
29
30}