Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 6
0.00% covered (danger)
0.00%
0 / 1
CRAP
0.00% covered (danger)
0.00%
0 / 1
Scribunto_LuaWikibaseLexemeEntityFormLibrary
0.00% covered (danger)
0.00%
0 / 6
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 1
 register
0.00% covered (danger)
0.00%
0 / 6
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3namespace Wikibase\Lexeme\MediaWiki\Scribunto;
4
5/**
6 * @license GPL-2.0-or-later
7 */
8class Scribunto_LuaWikibaseLexemeEntityFormLibrary extends Scribunto_LuaWikibaseLexemeAbstractEntityLibrary {
9
10    /**
11     * Register the mw.wikibase.lexeme.entity.form.lua library.
12     */
13    public function register() {
14        // These functions will be exposed to the Lua module.
15        // They are member functions on a Lua table which is private to the module, thus
16        // these can't be called from user code, unless explicitly exposed in Lua.
17        $lib = [
18            'addAllUsage' => [ $this, 'addAllUsage' ],
19        ];
20
21        return $this->getEngine()->registerInterface(
22            __DIR__ . '/mw.wikibase.lexeme.entity.form.lua', $lib, []
23        );
24    }
25
26}