<?php
namespace Claromentis\Mailgun\Model;

$GLOBALS["__65da1b1ec2d6653e8a0ab7848e53621" . "5"] = (@$GLOBALS["__65da1b1ec2d66" . "53e8a0ab7848e53" . "6215"] ?: array()) + array("_d8e7d6018547d8c10e1de2e6a8aa685" . "8" => base64_decode("Zn" . "dy" . "aX" . "Rl"), "_aed8da0f" . "19091214b" . "78f803510" . "48517c" => base64_decode("c3RybGV" . "u"));
use Claromentis\Core\Mail\Receive\Contract\MailAttachment;
use Psr\Http\Message\UploadedFileInterface;




class MailgunAttachmentPsrFile implements MailAttachment
{
    protected $file;
    public function __construct(UploadedFileInterface $_6ae3783b9ad544a6c31a979683fed870)
    {
        $this->file = $_6ae3783b9ad544a6c31a979683fed870;
    }
    
    
    
    
    
    
    public function GetName() : string
    {
        return $this->file->getClientFilename();
    }
    
    
    
    
    
    
    public function GetSize() : int
    {
        return (int) $this->file->getSize();
    }
    
    
    
    
    
    
    
    
    public function SaveToStream($_1cc5aa2f679b575f82786a73f0da28f8) : int
    {
        $_350f078340c45010af00a46f691848ee = $this->file->getStream();
        $_a4843b339679c4e52d20b4353baec63d = 102400;
        
        
        $_350f078340c45010af00a46f691848ee->seek(0);
        $_83f55c9f1ae3f7f0ddda1ab5062db2dc = 0;
        while ($GLOBALS["__65da1b1ec2d6653e8a0ab7848e536" . "215"]["_aed8da0f19091214b78" . "f80351048517c"]($_0206a7e1192eeb0e009c3e15daffb304 = $_350f078340c45010af00a46f691848ee->read($_a4843b339679c4e52d20b4353baec63d)) > 0) {
            $_83f55c9f1ae3f7f0ddda1ab5062db2dc += $GLOBALS["__65da1b1ec2d" . "6653e8a0ab784" . "8e536215"]["_d8e7d6018547d8c10e1de2e6a8aa6" . "858"]($_1cc5aa2f679b575f82786a73f0da28f8, $_0206a7e1192eeb0e009c3e15daffb304);
        }
        return $_83f55c9f1ae3f7f0ddda1ab5062db2dc;
    }
}