Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 2 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 1 |
FeatureConfiguration | |
0.00% |
0 / 2 |
|
0.00% |
0 / 2 |
12 | |
0.00% |
0 / 1 |
__construct | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
entitySchemaDataTypeEnabled | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
6 |
1 | <?php |
2 | |
3 | declare( strict_types = 1 ); |
4 | |
5 | namespace EntitySchema\Wikibase; |
6 | |
7 | use MediaWiki\Config\Config; |
8 | |
9 | /** |
10 | * @license GPL-2.0-or-later |
11 | */ |
12 | class FeatureConfiguration { |
13 | |
14 | private Config $config; |
15 | |
16 | public function __construct( |
17 | Config $config |
18 | ) { |
19 | $this->config = $config; |
20 | } |
21 | |
22 | public function entitySchemaDataTypeEnabled(): bool { |
23 | return defined( 'MW_QUIBBLE_CI' ) || $this->config->get( 'EntitySchemaEnableDatatype' ); |
24 | } |
25 | } |