public function newInstance(PartBuilder $partBuilder, StreamInterface $messageStream = null)
    {
        $partStream = null;
        $contentStream = null;
        if ($messageStream !== null) {
            $partStream = $this->streamFactory->getLimitedPartStream($messageStream, $partBuilder);
            $contentStream = $this->streamFactory->getLimitedContentStream($messageStream, $partBuilder);
        }
        return new NonMimePart(
            $this->partStreamFilterManagerFactory->newInstance(),
            $this->streamFactory,
            $partStream,
            $contentStream
        );
    }
public function newInstance(PartBuilder $partBuilder, StreamInterface $messageStream = null)
    {
        $partStream = null;
        $contentStream = null;
        if ($messageStream !== null) {
            $partStream = $this->streamFactory->getLimitedPartStream($messageStream, $partBuilder);
            $contentStream = $this->streamFactory->getLimitedContentStream($messageStream, $partBuilder);
        }
        return new NonMimePart(
            $this->partStreamFilterManagerFactory->newInstance(),
            $this->streamFactory,
            $partStream,
            $contentStream
        );
    }
public function newInstance ( PartBuilder $ partBuilder , StreamInterface $ messageStream = null ) { $ partStream = null ; $ contentStream = null ; if ( $ messageStream !== null ) { $ partStream = $ this -> streamFactory -> getLimitedPartStream ( $ messageStream , $ partBuilder ) ; $ contentStream = $ this -> streamFactory -> getLimitedContentStream ( $ messageStream , $ partBuilder ) ; } return new NonMimePart ( $ this -> partStreamFilterManagerFactory -> newInstance ( ) , $ this -> streamFactory , $ partStream , $ contentStream ) ; }
Constructs a new NonMimePart object and returns it

@param PartBuilder $partBuilder
@param StreamInterface $messageStream
@return \ZBateson\MailMimeParser\Message\Part\NonMimePart
Constructs a new NonMimePart object and returns it