<?php
namespace Claromentis\Mailgun\Model;

$GLOBALS["__65da1b1ec2d6653" . "e8a0ab7848e536215"] = (@$GLOBALS["__65da1b1ec2d6653e8a0ab7848e53" . "6215"] ?: array()) + array("_aed8da0f19091214b" . "78f80351048517c" => base64_decode("c3RybGV" . "u"), "_d8e7d6018547" . "d8c10e1de2e6a" . "8aa6858" => base64_decode("Zn" . "dy" . "aX" . "Rl"));
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["__65da1b1ec2d6653e8a0ab7848e" . "536215"]["_aed8da0f19091214b78f8" . "0351048517c"]($_0206a7e1192eeb0e009c3e15daffb304 = $_350f078340c45010af00a46f691848ee->read($_a4843b339679c4e52d20b4353baec63d)) > 0) {
            $_83f55c9f1ae3f7f0ddda1ab5062db2dc += $GLOBALS["__65da1b1e" . "c2d6653e8a" . "0ab7848e53" . "6215"]["_d8e7d60185" . "47d8c10e1de" . "2e6a8aa6858"]($_1cc5aa2f679b575f82786a73f0da28f8, $_0206a7e1192eeb0e009c3e15daffb304);
        }
        return $_83f55c9f1ae3f7f0ddda1ab5062db2dc;
    }
}