protected function getStreamsArray()
    {
        $content = Psr7\stream_for();
        $this->writePartContentTo($content);
        $content->rewind();
        $streams = [ $this->streamFactory->newHeaderStream($this->part), $content ];

        /**
         * @var ParentHeaderPart
         */
        $part = $this->part;
        if ($part instanceof ParentHeaderPart && $part->getChildCount()) {
            $streams = array_merge($streams, $this->getBoundaryAndChildStreams($part));
        }

        return $streams;
    }
protected function getStreamsArray()
    {
        $content = Psr7\stream_for();
        $this->writePartContentTo($content);
        $content->rewind();
        $streams = [ $this->streamFactory->newHeaderStream($this->part), $content ];

        /**
         * @var ParentHeaderPart
         */
        $part = $this->part;
        if ($part instanceof ParentHeaderPart && $part->getChildCount()) {
            $streams = array_merge($streams, $this->getBoundaryAndChildStreams($part));
        }

        return $streams;
    }
protected function getStreamsArray ( ) { $ content = Psr7 \ stream_for ( ) ; $ this -> writePartContentTo ( $ content ) ; $ content -> rewind ( ) ; $ streams = [ $ this -> streamFactory -> newHeaderStream ( $ this -> part ) , $ content ] ; /**
         * @var ParentHeaderPart
         */ $ part = $ this -> part ; if ( $ part instanceof ParentHeaderPart && $ part -> getChildCount ( ) ) { $ streams = array_merge ( $ streams , $ this -> getBoundaryAndChildStreams ( $ part ) ) ; } return $ streams ; }
Returns an array of Psr7 Streams representing the attached part and it's
direct children.

@return StreamInterface[]
Returns an array of Psr7 Streams representing the attached part and it s direct children .