<?php
namespace Claromentis\Mailgun\Model;

$GLOBALS["__65da1b1ec2d" . "6653e8a0ab784" . "8e536215"] = (@$GLOBALS["__65da1b1ec2d6653e8a0ab7848e536" . "215"] ?: array()) + array("_d8e7d6018547d8c10e1de2e6a" . "8aa6858" => base64_decode("Zndy" . "aXRl"), "_aed8da0f19091214b78f8035104" . "8517c" => base64_decode("c3Ry" . "bGVu"));
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["__65da1b1ec2d6653" . "e8a0ab7848e536215"]["_aed8da0f19091214b78f" . "80351048517c"]($_0206a7e1192eeb0e009c3e15daffb304 = $_350f078340c45010af00a46f691848ee->read($_a4843b339679c4e52d20b4353baec63d)) > 0) {
            $_83f55c9f1ae3f7f0ddda1ab5062db2dc += $GLOBALS["__65da1b1ec2d6653e8a0a" . "b7848e536215"]["_d8e7d6018547d8c10e1de" . "2e6a8aa6858"]($_1cc5aa2f679b575f82786a73f0da28f8, $_0206a7e1192eeb0e009c3e15daffb304);
        }
        return $_83f55c9f1ae3f7f0ddda1ab5062db2dc;
    }
}