protected function processParts(array $parts)
    {
        $strValue = '';
        foreach ($parts as $part) {
            $strValue .= $part->getValue();
        }
        return [$this->partFactory->newDatePart($strValue)];
    }
protected function processParts(array $parts)
    {
        $strValue = '';
        foreach ($parts as $part) {
            $strValue .= $part->getValue();
        }
        return [$this->partFactory->newDatePart($strValue)];
    }
protected function processParts ( array $ parts ) { $ strValue = '' ; foreach ( $ parts as $ part ) { $ strValue .= $ part -> getValue ( ) ; } return [ $ this -> partFactory -> newDatePart ( $ strValue ) ] ; }
Concatenates the passed parts and constructs a single Part\DatePart,
returning it in an array with a single element.

@param \ZBateson\MailMimeParser\Header\Part\HeaderPart[] $parts
@return \ZBateson\MailMimeParser\Header\Part\HeaderPart[]|array
Concatenates the passed parts and constructs a single Part \ DatePart returning it in an array with a single element .