Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 2
CRAP
0.00% covered (danger)
0.00%
0 / 4
ConfigEquivEntitiesFactory
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 2
6
0.00% covered (danger)
0.00%
0 / 4
 __construct
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 3
 getEquivEntities
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 1
<?php
namespace MediaWiki\Extension\WikibaseManifest;
use Config;
class ConfigEquivEntitiesFactory implements EquivEntitiesFactory {
    /**
     * @var Config
     */
    private $config;
    /**
     * @var string
     */
    private $configMappingName;
    public function __construct( Config $config, string $configMappingName ) {
        $this->config = $config;
        $this->configMappingName = $configMappingName;
    }
    public function getEquivEntities(): EquivEntities {
        return new EquivEntities( $this->config->get( $this->configMappingName ) );
    }
}