summaryrefslogtreecommitdiff
path: root/vendor/symfony/mime/Encoder/ContentEncoderInterface.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/symfony/mime/Encoder/ContentEncoderInterface.php')
-rw-r--r--vendor/symfony/mime/Encoder/ContentEncoderInterface.php32
1 files changed, 32 insertions, 0 deletions
diff --git a/vendor/symfony/mime/Encoder/ContentEncoderInterface.php b/vendor/symfony/mime/Encoder/ContentEncoderInterface.php
new file mode 100644
index 0000000000..b44e1a4a71
--- /dev/null
+++ b/vendor/symfony/mime/Encoder/ContentEncoderInterface.php
@@ -0,0 +1,32 @@
+<?php
+
+/*
+ * This file is part of the Symfony package.
+ *
+ * (c) Fabien Potencier <fabien@symfony.com>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Symfony\Component\Mime\Encoder;
+
+/**
+ * @author Chris Corbyn
+ *
+ * @experimental in 4.3
+ */
+interface ContentEncoderInterface extends EncoderInterface
+{
+ /**
+ * Encodes the stream to a Generator.
+ *
+ * @param resource $stream
+ */
+ public function encodeByteStream($stream, int $maxLineLength = 0): iterable;
+
+ /**
+ * Gets the MIME name of this content encoding scheme.
+ */
+ public function getName(): string;
+}