protected function processParts(array $parts)
    {
        $strName = '';
        $strValue = '';
        foreach ($parts as $part) {
            if ($part instanceof AddressGroupPart) {
                return [
                    $this->partFactory->newAddressGroupPart(
                        $part->getAddresses(),
                        $strValue
                    )
                ];
            }
            $this->processSinglePart($part, $strName, $strValue);
        }
        return [$this->partFactory->newAddressPart($strName, $strValue)];
    }
protected function processParts(array $parts)
    {
        $strName = '';
        $strValue = '';
        foreach ($parts as $part) {
            if ($part instanceof AddressGroupPart) {
                return [
                    $this->partFactory->newAddressGroupPart(
                        $part->getAddresses(),
                        $strValue
                    )
                ];
            }
            $this->processSinglePart($part, $strName, $strValue);
        }
        return [$this->partFactory->newAddressPart($strName, $strValue)];
    }
protected function processParts ( array $ parts ) { $ strName = '' ; $ strValue = '' ; foreach ( $ parts as $ part ) { if ( $ part instanceof AddressGroupPart ) { return [ $ this -> partFactory -> newAddressGroupPart ( $ part -> getAddresses ( ) , $ strValue ) ] ; } $ this -> processSinglePart ( $ part , $ strName , $ strValue ) ; } return [ $ this -> partFactory -> newAddressPart ( $ strName , $ strValue ) ] ; }
Performs final processing on parsed parts.

AddressConsumer's implementation looks for tokens representing the
beginning of an address part, to create a Part\AddressPart out of a
name/address pair, or assign the name part to a parsed Part\AddressGroupPart
returned from its AddressGroupConsumer sub-consumer.

The returned array consists of a single element - either a
Part\AddressPart or a Part\AddressGroupPart.

@param \ZBateson\MailMimeParser\Header\Part\HeaderPart[] $parts
@return \ZBateson\MailMimeParser\Header\Part\HeaderPart[]|array
Performs final processing on parsed parts .