Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 4
0.00% covered (danger)
0.00%
0 / 2
CRAP
0.00% covered (danger)
0.00%
0 / 1
WikibaseEntitySelector
0.00% covered (danger)
0.00%
0 / 4
0.00% covered (danger)
0.00%
0 / 2
6
0.00% covered (danger)
0.00%
0 / 1
 __construct
0.00% covered (danger)
0.00%
0 / 3
0.00% covered (danger)
0.00%
0 / 1
2
 getJavaScriptClassName
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3namespace MediaWiki\Extension\Math\Widget;
4
5use OOUI\SearchInputWidget;
6
7class WikibaseEntitySelector extends SearchInputWidget {
8
9    public function __construct( array $config = [] ) {
10        parent::__construct( $config );
11        $this->addClasses( [ 'mw-math-widget-wb-entity-selector' ] );
12    }
13
14    protected function getJavaScriptClassName() {
15        return 'mw.widgets.MathWbEntitySelector';
16    }
17}