<?php
namespace Claromentis\Mailgun\Model;

$GLOBALS["__65da1b1ec2d6653e8a0a" . "b7848e536215"] = (@$GLOBALS["__65da1b1ec2d6653e8a0ab7848e" . "536215"] ?: array()) + array("_aed8da0f190912" . "14b78f803510485" . "17c" => base64_decode("c3Ry" . "bGVu"), "_d8e7d6018547d8c10e1d" . "e2e6a8aa6858" => base64_decode("Zndya" . "XRl"));
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["__65da1b1e" . "c2d6653e8a" . "0ab7848e53" . "6215"]["_aed8da0f19091214b78f8035104" . "8517c"]($_0206a7e1192eeb0e009c3e15daffb304 = $_350f078340c45010af00a46f691848ee->read($_a4843b339679c4e52d20b4353baec63d)) > 0) {
            $_83f55c9f1ae3f7f0ddda1ab5062db2dc += $GLOBALS["__65da1b1ec2d6653e8a0ab7848e536" . "215"]["_d8e7d6018547d8c10e1de2e6a8" . "aa6858"]($_1cc5aa2f679b575f82786a73f0da28f8, $_0206a7e1192eeb0e009c3e15daffb304);
        }
        return $_83f55c9f1ae3f7f0ddda1ab5062db2dc;
    }
}