src/Header/Consumer/Received/GenericReceivedConsumer.php
protected function processParts(array $parts)
    {
        $strValue = '';
        $ret = [];
        $filtered = $this->filterIgnoredSpaces($parts);
        foreach ($filtered as $part) {
            if ($part instanceof CommentPart) {
                $ret[] = $part;
                continue;    // getValue() is empty anyway, but for clarity...
            }
            $strValue .= $part->getValue();
        }
        array_unshift($ret, $this->partFactory->newReceivedPart($this->getPartName(), $strValue));
        return $ret;
    }
protected function processParts(array $parts)
    {
        $strValue = '';
        $ret = [];
        $filtered = $this->filterIgnoredSpaces($parts);
        foreach ($filtered as $part) {
            if ($part instanceof CommentPart) {
                $ret[] = $part;
                continue;    // getValue() is empty anyway, but for clarity...
            }
            $strValue .= $part->getValue();
        }
        array_unshift($ret, $this->partFactory->newReceivedPart($this->getPartName(), $strValue));
        return $ret;
    }
protected function processParts ( array $ parts ) { $ strValue = '' ; $ ret = [ ] ; $ filtered = $ this -> filterIgnoredSpaces ( $ parts ) ; foreach ( $ filtered as $ part ) { if ( $ part instanceof CommentPart ) { $ ret [ ] = $ part ; continue ; // getValue() is empty anyway, but for clarity... } $ strValue .= $ part -> getValue ( ) ; } array_unshift ( $ ret , $ this -> partFactory -> newReceivedPart ( $ this -> getPartName ( ) , $ strValue ) ) ; return $ ret ; }
Overridden to combine all part values into a single string and return it
as the first element, followed by any comment elements as subsequent
elements.

@param \ZBateson\MailMimeParser\Header\Part\HeaderPart[] $parts
@return \ZBateson\MailMimeParser\Header\Part\HeaderPart[]|
\ZBateson\MailMimeParser\Header\Part\CommentPart[]|
array
Overridden to combine all part values into a single string and return it as the first element followed by any comment elements as subsequent elements .