/** * Constructs a MimeLiteralPart, decoding the value if it's mime-encoded. * * @param string $token */ public function __construct($token) { parent::__construct($token); $this->comment = $this->value; $this->value = ''; $this->canIgnoreSpacesBefore = true; $this->canIgnoreSpacesAfter = true; }
/** * Creates an AddressGroupPart out of the passed array of AddressParts and an * optional name (which may be mime-encoded). * * @param AddressPart[] $addresses * @param string $name */ public function __construct(array $addresses, $name = '') { parent::__construct(trim($name)); $this->addresses = $addresses; }
/** * Constructs a ParameterPart out of a name/value pair. The name and * value are both mime-decoded if necessary. * * @param string $name * @param string $value */ public function __construct($name, $value) { parent::__construct(trim($value)); $this->name = $this->decodeMime(trim($name)); }