قرینه از
https://github.com/matomo-org/matomo.git
synced 2025-08-22 15:07:44 +00:00
28 خطوط
506 B
PHP
28 خطوط
506 B
PHP
<?php
|
|
|
|
namespace Piwik\Tests\Framework\Mock;
|
|
|
|
use Piwik\Config;
|
|
|
|
class FakeConfig extends Config
|
|
{
|
|
private $configValues = array();
|
|
|
|
public function __construct($configValues = array())
|
|
{
|
|
$this->configValues = $configValues;
|
|
}
|
|
|
|
public function &__get($name)
|
|
{
|
|
if (isset($this->configValues[$name])) {
|
|
return $this->configValues[$name];
|
|
}
|
|
}
|
|
|
|
public function __set($name, $value)
|
|
{
|
|
$this->configValues[$name] = $value;
|
|
}
|
|
}
|