Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
2 / 2
CRAP
100.00% covered (success)
100.00%
4 / 4
ConfigMaxLagFactory
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
2 / 2
2
100.00% covered (success)
100.00%
4 / 4
 __construct
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
3 / 3
 getMaxLag
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
<?php
namespace MediaWiki\Extension\WikibaseManifest;
use Config;
class ConfigMaxLagFactory implements MaxLagFactory {
    /**
     * @var Config
     */
    private $config;
    /**
     * @var string
     */
    private $configValueName;
    public function __construct( Config $config, string $configValueName ) {
        $this->config = $config;
        $this->configValueName = $configValueName;
    }
    public function getMaxLag(): MaxLag {
        return new MaxLag( $this->config->get( $this->configValueName ) );
    }
}