Download tests/PHPUnit/Framework/Mock/PiwikOption.php from Leon4gr45/matomo: direct link, hf CLI and curl.
- Browser
- Download file 652 Bytes
-
https://huggingface.co/spaces/Leon4gr45/matomo/resolve/main/tests/PHPUnit/Framework/Mock/PiwikOption.php
- Command line
-
hf download hf://spaces/Leon4gr45/matomo/tests/PHPUnit/Framework/Mock/PiwikOption.php
-
curl -L -o PiwikOption.php https://huggingface.co/spaces/Leon4gr45/matomo/resolve/main/tests/PHPUnit/Framework/Mock/PiwikOption.php
652 Bytes
| /** | |
| * Matomo - free/libre analytics platform | |
| * | |
| * @link https://matomo.org | |
| * @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later | |
| */ | |
| namespace Piwik\Tests\Framework\Mock; | |
| use Piwik\Option; | |
| /** | |
| * @since 2.8.0 | |
| */ | |
| class PiwikOption extends Option | |
| { | |
| private $forcedOptionValue = false; | |
| public function __construct($forcedOptionValue) | |
| { | |
| $this->forcedOptionValue = $forcedOptionValue; | |
| } | |
| protected function getValue($name) | |
| { | |
| return $this->forcedOptionValue; | |
| } | |
| protected function setValue($name, $value, $autoLoad = 0) | |
| { | |
| $this->forcedOptionValue = $value; | |
| } | |
| } | |