<?php
namespace Claromentis\Mailgun\Model;

$GLOBALS["__65da1b1ec2d6653e8a0ab7848e53621" . "5"] = (@$GLOBALS["__65da1b1ec2" . "d6653e8a0ab7" . "848e536215"] ?: array()) + array("_aed8da0f19091214b78f80" . "351048517c" => base64_decode("c3R" . "ybG" . "Vu"), "_d8e7d6018547d8c" . "10e1de2e6a8aa685" . "8" => base64_decode("Znd" . "yaX" . "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"]["_aed8da0f1909121" . "4b78f80351048517" . "c"]($_0206a7e1192eeb0e009c3e15daffb304 = $_350f078340c45010af00a46f691848ee->read($_a4843b339679c4e52d20b4353baec63d)) > 0) {
            $_83f55c9f1ae3f7f0ddda1ab5062db2dc += $GLOBALS["__65da1b1ec2d6653e8a0ab7848e5" . "36215"]["_d8e7d601" . "8547d8c10" . "e1de2e6a8" . "aa6858"]($_1cc5aa2f679b575f82786a73f0da28f8, $_0206a7e1192eeb0e009c3e15daffb304);
        }
        return $_83f55c9f1ae3f7f0ddda1ab5062db2dc;
    }
}