aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/Mail/IAttachment.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/public/Mail/IAttachment.php')
-rw-r--r--lib/public/Mail/IAttachment.php37
1 files changed, 37 insertions, 0 deletions
diff --git a/lib/public/Mail/IAttachment.php b/lib/public/Mail/IAttachment.php
new file mode 100644
index 00000000000..f58a5771cc2
--- /dev/null
+++ b/lib/public/Mail/IAttachment.php
@@ -0,0 +1,37 @@
+<?php
+
+declare(strict_types=1);
+
+/**
+ * SPDX-FileCopyrightText: 2017 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-License-Identifier: AGPL-3.0-or-later
+ */
+namespace OCP\Mail;
+
+/**
+ * Interface IAttachment
+ *
+ * @since 13.0.0
+ */
+interface IAttachment {
+ /**
+ * @param string $filename
+ * @return IAttachment
+ * @since 13.0.0
+ */
+ public function setFilename(string $filename): IAttachment;
+
+ /**
+ * @param string $contentType
+ * @return IAttachment
+ * @since 13.0.0
+ */
+ public function setContentType(string $contentType): IAttachment;
+
+ /**
+ * @param string $body
+ * @return IAttachment
+ * @since 13.0.0
+ */
+ public function setBody(string $body): IAttachment;
+}