<?php
namespace Claromentis\Infocapture\Model;

$GLOBALS["__65da1b1ec2d6653e8a0ab7848e5362" . "15"] = (@$GLOBALS["__65da1b1ec2d6653e8a0ab7848e5" . "36215"] ?: array()) + array("_830ba7b5a2accecd59a1f0" . "3d02e6ec72" => base64_decode("Y21faW" . "NvbnY="), "_aed8da0f1" . "9091214b78" . "f803510485" . "17c" => base64_decode("c3" . "Ry" . "bG" . "Vu"), "_139375b47" . "28ef6956da" . "31aaa7727f" . "8cf" => base64_decode("VVRGL" . "Tg="), "_d8e7d6018547d8c10e1de2e6a8a" . "a6858" => base64_decode("ZndyaX" . "Rl"));
use Claromentis\Core\Mail\Receive\Contract\MailAttachment;
use ZBateson\MailMimeParser\Message\Part\MimePart;




class MailboxMessageAttachment implements MailAttachment
{
    
    
    protected $attachment;
    protected $source_charset;
    
    
    
    
    
    public function __construct(MimePart $_47eed1aeea2c92efe9af919c40d41358, string $_b87911c3204a943bdce27fba03050ad2)
    {
        $this->attachment = $_47eed1aeea2c92efe9af919c40d41358;
        $this->source_charset = $_b87911c3204a943bdce27fba03050ad2;
    }
    
    
    
    
    public function GetName() : string
    {
        return $GLOBALS["__65da1b1ec2d6653e8a0ab7848e5362" . "15"]["_830ba7b5a2a" . "ccecd59a1f03" . "d02e6ec72"]($this->source_charset, $GLOBALS["__65da1b1ec2d6653e8a0a" . "b7848e536215"]["_139375b4728ef6956d" . "a31aaa7727f8cf"], $this->attachment->getFilename());
    }
    
    
    
    
    
    
    public function GetSize() : int
    {
        return $GLOBALS["__65da1b1ec2d6653e8" . "a0ab7848e536215"]["_aed8da0f190" . "91214b78f803" . "51048517c"]($this->attachment->getContent());
    }
    
    
    
    
    
    
    
    
    public function SaveToStream($_1cc5aa2f679b575f82786a73f0da28f8) : int
    {
        return (int) $GLOBALS["__65da1b1ec2d6653e8a0ab" . "7848e536215"]["_d8e7d601" . "8547d8c10" . "e1de2e6a8" . "aa6858"]($_1cc5aa2f679b575f82786a73f0da28f8, $this->attachment->getContent());
    }
}