Piwik\Settings\Measurable\MeasurableSetting::__construct PHP Метод

__construct() публичный Метод

Constructor.
public __construct ( string $name, mixed $defaultValue, string $type, string $pluginName, integer $idSite )
$name string The persisted name of the setting.
$defaultValue mixed Default value for this setting if no value was specified.
$type string Eg an array, int, ... see TYPE_* constants
$pluginName string The name of the plugin the setting belongs to
$idSite integer The idSite this setting belongs to.
    public function __construct($name, $defaultValue, $type, $pluginName, $idSite)
    {
        parent::__construct($name, $defaultValue, $type, $pluginName);
        $this->idSite = $idSite;
        $storageFactory = StaticContainer::get('Piwik\\Settings\\Storage\\Factory');
        $this->storage = $storageFactory->getMeasurableSettingsStorage($idSite, $this->pluginName);
    }