/** * Checks if the passed part represents the beginning or end of an address * part (less than/greater than characters) and either appends the value of * the part to the passed $strValue, or sets up $strName * * @param HeaderPart $part * @param string $strName * @param string $strValue */ private function processSinglePart(HeaderPart $part, &$strName, &$strValue) { $pValue = $part->getValue(); if ($part instanceof Token) { if ($pValue === '<') { $strName = $strValue; $strValue = ''; return; } elseif ($pValue === '>') { return; } } $strValue .= $pValue; }