<?php
namespace Claromentis\Design\Model;

$GLOBALS["__65da1b1ec2d6653e" . "8a0ab7848e536215"] = (@$GLOBALS["__65da1b1ec2d6653e8a0" . "ab7848e536215"] ?: array()) + array("_a591754a8ddcd" . "bda9c80f1db4d9" . "11e14" => base64_decode("aXNfb" . "nVsbA" . "=="));
use Claromentis\Design\Facade\AssetsStorage;




class StyleAsset
{
    protected $name_to_save;
    protected $tmp_file_path;
    protected $saved_url;
    public function __construct($_385398efdeb0edcbebf192d26d027dcb, $_6242828af883167877ba565400e3e93b)
    {
        $this->name_to_save = $_385398efdeb0edcbebf192d26d027dcb;
        $this->tmp_file_path = $_6242828af883167877ba565400e3e93b;
        $this->saved_url = null;
    }
    public function SaveTo(AssetsStorage $storage)
    {
        if (!$GLOBALS["__65da1b1ec2" . "d6653e8a0ab7" . "848e536215"]["_a591754a8d" . "dcdbda9c80f" . "1db4d911e14"]($this->saved_url)) {
            return $this->saved_url;
        }
        if (empty($this->tmp_file_path)) {
            return null;
        }
        $url = $storage->AddFile($this->tmp_file_path, $this->name_to_save);
        $this->saved_url = $url;
        $this->tmp_file_path = null;
        return $url;
    }
    
    
    
    
    
    
    public function GetTemporaryFilePath()
    {
        return $this->tmp_file_path;
    }
}