HEX
Server: Microsoft-IIS/10.0
System: Windows NT ITPWINWEBSVR22 10.0 build 20348 (Windows Server 2022) AMD64
User: www.conferencesearch.co.uk (0)
PHP: 8.3.30
Disabled: NONE
Upload Files
File: D:/web/matomo.circ/core/AssetManager/UIAsset/InMemoryUIAsset.php
<?php

/**
 * 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\AssetManager\UIAsset;

use Exception;
use Piwik\AssetManager\UIAsset;

class InMemoryUIAsset extends UIAsset
{
    private $content;

    public function validateFile()
    {
        return;
    }

    public function getAbsoluteLocation()
    {
        throw new Exception('invalid operation');
    }

    public function getRelativeLocation()
    {
        throw new Exception('invalid operation');
    }

    public function getBaseDirectory()
    {
        throw new Exception('invalid operation');
    }

    public function delete()
    {
        $this->content = null;
    }

    public function exists()
    {
        return false;
    }

    public function writeContent($content)
    {
        $this->content = $content;
    }

    public function getContent()
    {
        return $this->content;
    }

    public function getModificationDate()
    {
        throw new Exception('invalid operation');
    }
}