<?php
namespace Claromentis\Core\Http;

$GLOBALS["__65da1b1ec2d6653e8a" . "0ab7848e536215"] = (@$GLOBALS["__65da1b1ec2d6" . "653e8a0ab7848e" . "536215"] ?: array()) + array("_63c3fcd4498ce3d69ed26" . "ee228563cba" => base64_decode("V" . "Q" . "=" . "="), "_b900ff57c02d0c496c3d0671e0" . "c7ab71" => base64_decode("aHR0cF9mdW5jd" . "GlvbnMucGhw"), "_aa19f395" . "60a414022" . "09bf532d1" . "544744" => base64_decode("c2VuZEhlYWRl" . "cnNEb3dubG9h" . "ZA=="));
use Symfony\Component\HttpFoundation\Response;







class FileStringResponse extends Response
{
    const INLINE = 'inline';
    const DOWNLOAD = 'attachment';
    protected $file_name;
    protected $disposition;
    protected $mime_type;
    protected $last_modified;
    protected $is_protected;
    protected $cache_ttl;
    protected $file_size;
    public function __construct($_24ca62b4d01cc6d515dfd0bea4c9d59a, $file_name, $_4b83d26c5eb0d93a0b377ff582df05e0 = false, $_655a561f4e34bbdfa745dc13393471b3 = '')
    {
        parent::__construct($_24ca62b4d01cc6d515dfd0bea4c9d59a);
        $this->file_name = $file_name;
        $this->disposition = $_4b83d26c5eb0d93a0b377ff582df05e0 ? self::DOWNLOAD : self::INLINE;
        $this->mime_type = $_655a561f4e34bbdfa745dc13393471b3;
        $this->last_modified = 0;
        $this->is_protected = 1;
        $this->cache_ttl = 604800;
        
        
        $this->file_size = 0;
    }
    
    
    
    
    
    
    public function SetMimeType($_655a561f4e34bbdfa745dc13393471b3)
    {
        $this->mime_type = $_655a561f4e34bbdfa745dc13393471b3;
        return $this;
    }
    
    
    
    
    
    public function SetLastModified(\DateTimeInterface $_7608a2690229dd26ac43cb60aa2a7d97 = null) : object
    {
        if ($_7608a2690229dd26ac43cb60aa2a7d97 !== null) {
            $this->last_modified = $_7608a2690229dd26ac43cb60aa2a7d97->format($GLOBALS["__65da1b1e" . "c2d6653e8a" . "0ab7848e53" . "6215"]["_63c3fcd4498ce3d69ed26ee228563" . "cba"]);
        }
        $this->last_modified = $_7608a2690229dd26ac43cb60aa2a7d97;
        return $this;
    }
    
    
    
    
    
    
    public function SetIsProtected($_fb01886968e6069b1e01895aab49a296)
    {
        $this->is_protected = (bool) $_fb01886968e6069b1e01895aab49a296;
        return $this;
    }
    
    
    
    
    
    
    public function SetCacheTTL($_3eda9235d1e262356cb51c8c4f40b84b)
    {
        $this->cache_ttl = $_3eda9235d1e262356cb51c8c4f40b84b;
        return $this;
    }
    public function sendHeaders()
    {
        require_once $GLOBALS["__65da1b1ec2d6653e8a0ab7" . "848e536215"]["_b900ff57c02d0c496c3d067" . "1e0c7ab71"];
        $GLOBALS["__65da1b1ec2d6653e8a0ab7848e536" . "215"]["_aa19f39560a41" . "402209bf532d15" . "44744"]($this->file_name, $this->disposition, $this->mime_type, $this->file_size, $this->last_modified, $this->cache_ttl, $this->is_protected);
        return $this;
    }
}