<?php
namespace Claromentis\Core\Http;

$GLOBALS["__65da1b1ec2" . "d6653e8a0ab7" . "848e536215"] = (@$GLOBALS["__65da1b1" . "ec2d6653e" . "8a0ab7848" . "e536215"] ?: array()) + array("_aa19f39560a41402209bf532d15447" . "44" => base64_decode("c2VuZEhlYWRlcnNEb3" . "dubG9hZA=="), "_63c3fcd4498ce3d69e" . "d26ee228563cba" => base64_decode("VQ=" . "="), "_b900ff57c02d0c49" . "6c3d0671e0c7ab71" => base64_decode("aHR0cF9mdW5jdGlvbn" . "MucGhw"));
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)
    {
        if ($_7608a2690229dd26ac43cb60aa2a7d97 !== null) {
            $this->last_modified = $_7608a2690229dd26ac43cb60aa2a7d97->format($GLOBALS["__65da1b1ec2d6653e8a0ab" . "7848e536215"]["_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["__65da1b1ec2d6" . "653e8a0ab7848e" . "536215"]["_b900ff57c02d0c4" . "96c3d0671e0c7ab7" . "1"];
        $GLOBALS["__65da1b1ec2d6653e" . "8a0ab7848e536215"]["_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;
    }
}