private function getEncoder(): ContentEncoderInterface
{ if ('8bit' ===
$this->encoding
) { return self::
$encoders[$this->encoding
] ??=
new EightBitContentEncoder();
} if ('quoted-printable' ===
$this->encoding
) { return self::
$encoders[$this->encoding
] ??=
new QpContentEncoder();
} return self::
$encoders[$this->encoding
] ??=
new Base64ContentEncoder();
} private function chooseEncoding(): string
{ if (null ===
$this->charset
) { return 'base64';
} return 'quoted-printable';
}