for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the ZBateson\MailMimeParser project.
*
* @license http://opensource.org/licenses/bsd-license.php BSD
*/
namespace ZBateson\MailMimeParser\Header\Part;
use ZBateson\StreamDecorators\Util\CharsetConverter;
* Represents one parameter in a parsed 'Received' header, e.g. the FROM or VIA
* part.
* Note that FROM and BY actually get parsed into a sub-class,
* ReceivedDomainPart which keeps track of other sub-parts that can be parsed
* from them.
* @author Zaahid Bateson
class ReceivedPart extends ParameterPart
{
* Constructor.
* @param CharsetConverter $charsetConverter
* @param string $name
* @param string $value
public function __construct(CharsetConverter $charsetConverter, $name, $value) {
parent::__construct($charsetConverter, '', '');
// can't be mime-encoded
$this->name = trim($name);
$this->value = trim($value);
}