summaryrefslogtreecommitdiffstats
path: root/lib/private/share/mailnotifications.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/share/mailnotifications.php')
-rw-r--r--lib/private/share/mailnotifications.php35
1 files changed, 27 insertions, 8 deletions
diff --git a/lib/private/share/mailnotifications.php b/lib/private/share/mailnotifications.php
index 4799db52330..cb74dcf8b90 100644
--- a/lib/private/share/mailnotifications.php
+++ b/lib/private/share/mailnotifications.php
@@ -21,11 +21,30 @@
namespace OC\Share;
+use DateTime;
+
class MailNotifications {
- private $senderId; // sender userId
- private $from; // sender email address
+ /**
+ * sender userId
+ * @var null|string
+ */
+ private $senderId;
+
+ /**
+ * sender email address
+ * @var string
+ */
+ private $from;
+
+ /**
+ * @var string
+ */
private $senderDisplayName;
+
+ /**
+ * @var \OC_L10N
+ */
private $l;
/**
@@ -47,11 +66,11 @@ class MailNotifications {
}
/**
- * @brief inform users if a file was shared with them
+ * inform users if a file was shared with them
*
* @param array $recipientList list of recipients
- * @param type $itemSource shared item source
- * @param type $itemType shared item type
+ * @param string $itemSource shared item source
+ * @param string $itemType shared item type
* @return array list of user to whom the mail send operation failed
*/
public function sendInternalShareMail($recipientList, $itemSource, $itemType) {
@@ -106,7 +125,7 @@ class MailNotifications {
}
/**
- * @brief inform recipient about public link share
+ * inform recipient about public link share
*
* @param string $recipient recipient email address
* @param string $filename the shared file
@@ -131,12 +150,12 @@ class MailNotifications {
}
/**
- * @brief create mail body for plain text and html mail
+ * create mail body for plain text and html mail
*
* @param string $filename the shared file
* @param string $link link to the shared file
* @param int $expiration expiration date (timestamp)
- * @return array with the html mail body and the plain text mail body
+ * @return array an array of the html mail body and the plain text mail body
*/
private function createMailBody($filename, $link, $expiration) {