src/MailMap/MailFactory.php
public function create($uid, $stream)
    {
        return new $this->mailClass(
            $uid,
            $stream,
            $this->parseMailHeader($stream, $uid),
            $this->parseHeaders($stream, $uid),
            $this->parseBody($stream, $uid)
        );
    }
public function create($uid, $stream)
    {
        return new $this->mailClass(
            $uid,
            $stream,
            $this->parseMailHeader($stream, $uid),
            $this->parseHeaders($stream, $uid),
            $this->parseBody($stream, $uid)
        );
    }
public function create ( $ uid , $ stream ) { return new $ this -> mailClass ( $ uid , $ stream , $ this -> parseMailHeader ( $ stream , $ uid ) , $ this -> parseHeaders ( $ stream , $ uid ) , $ this -> parseBody ( $ stream , $ uid ) ) ; }
Create new mail from uid

@param  int $uid
@param  resource $stream
@return \MailMap\Contracts\Mail
Create new mail from uid