summaryrefslogtreecommitdiffstats
path: root/lib/public/Mail
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2017-10-25 09:26:57 +0200
committerJoas Schilling <coding@schilljs.com>2017-10-25 09:26:57 +0200
commit6a035bd0a0ea3f7a8811a2a970dcb22450fa26e0 (patch)
tree65103a2e29b0507bb830d6fcd07e4b93dbadc6ef /lib/public/Mail
parent65e938c4fdbda3c88e79c83e43e7ea8a22789408 (diff)
downloadnextcloud-server-6a035bd0a0ea3f7a8811a2a970dcb22450fa26e0.tar.gz
nextcloud-server-6a035bd0a0ea3f7a8811a2a970dcb22450fa26e0.zip
Move attachment creators to mailer class
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/public/Mail')
-rw-r--r--lib/public/Mail/IMailer.php17
-rw-r--r--lib/public/Mail/IMessage.php17
2 files changed, 17 insertions, 17 deletions
diff --git a/lib/public/Mail/IMailer.php b/lib/public/Mail/IMailer.php
index 35189c22a69..10096548256 100644
--- a/lib/public/Mail/IMailer.php
+++ b/lib/public/Mail/IMailer.php
@@ -54,6 +54,23 @@ interface IMailer {
public function createMessage();
/**
+ * @param string|null $data
+ * @param string|null $filename
+ * @param string|null $contentType
+ * @return IAttachment
+ * @since 13.0.0
+ */
+ public function createAttachment($data = null, $filename = null, $contentType = null);
+
+ /**
+ * @param string $path
+ * @param string|null $contentType
+ * @return IAttachment
+ * @since 13.0.0
+ */
+ public function createAttachmentFromPath($path, $contentType = null);
+
+ /**
* Creates a new email template object
*
* @param string $emailId
diff --git a/lib/public/Mail/IMessage.php b/lib/public/Mail/IMessage.php
index 45c01b7079f..e82b4ff93a9 100644
--- a/lib/public/Mail/IMessage.php
+++ b/lib/public/Mail/IMessage.php
@@ -30,23 +30,6 @@ namespace OCP\Mail;
interface IMessage {
/**
- * @param string|null $data
- * @param string|null $filename
- * @param string|null $contentType
- * @return IAttachment
- * @since 13.0.0
- */
- public function createAttachment($data = null, $filename = null, $contentType = null);
-
- /**
- * @param string $path
- * @param string|null $contentType
- * @return IAttachment
- * @since 13.0.0
- */
- public function createAttachmentFromPath($path, $contentType = null);
-
- /**
* @param IAttachment $attachment
* @return $this
* @since 13.0.0