Download tests/PHPUnit/Framework/Mock/Site.php from Leon4gr45/matomo: direct link, hf CLI and curl.
- Browser
- Download file 522 Bytes
-
https://huggingface.co/spaces/Leon4gr45/matomo/resolve/main/tests/PHPUnit/Framework/Mock/Site.php
- Command line
-
hf download hf://spaces/Leon4gr45/matomo/tests/PHPUnit/Framework/Mock/Site.php
-
curl -L -o Site.php https://huggingface.co/spaces/Leon4gr45/matomo/resolve/main/tests/PHPUnit/Framework/Mock/Site.php
522 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; | |
| /** | |
| * FakeSite for UnitTests | |
| * @since 2.13.0 | |
| */ | |
| class Site extends \Piwik\Site | |
| { | |
| /** | |
| * @param int $idsite The ID of the site we want data for. | |
| */ | |
| public function __construct($idsite) | |
| { | |
| $this->id = (int)$idsite; | |
| } | |
| public function getTimezone() | |
| { | |
| return 'UTC'; | |
| } | |
| } | |