<?php
namespace Claromentis\Design\Model;

$GLOBALS["__65da1b1ec2d6653e8a0ab7848" . "e536215"] = (@$GLOBALS["__65da1b1ec2d6653e8a0ab" . "7848e536215"] ?: array()) + array("_a591754" . "a8ddcdbd" . "a9c80f1d" . "b4d911e1" . "4" => base64_decode("aXNfbnVsbA=" . "="));
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["__65da1b1ec2d66" . "53e8a0ab7848e53" . "6215"]["_a591754a" . "8ddcdbda9" . "c80f1db4d" . "911e14"]($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;
    }
}