diff --git a/lib/public/Mail/Provider/IMessage.php b/lib/public/Mail/Provider/IMessage.php index 7102198136268..625c8a33556bb 100644 --- a/lib/public/Mail/Provider/IMessage.php +++ b/lib/public/Mail/Provider/IMessage.php @@ -43,7 +43,7 @@ public function setFrom(IAddress $value): self; * * @since 30.0.0 * - * @param IAddress|null sender's mail address object + * @return IAddress|null sender's mail address object */ public function getFrom(): IAddress | null; @@ -63,7 +63,7 @@ public function setReplyTo(IAddress $value): self; * * @since 30.0.0 * - * @param IAddress|null sender's reply to mail address object + * @return IAddress|null sender's reply to mail address object */ public function getReplyTo(): IAddress | null; @@ -83,7 +83,7 @@ public function setTo(IAddress ...$value): self; * * @since 30.0.0 * - * @param array collection of all recipient mail address objects + * @return array collection of all recipient mail address objects */ public function getTo(): array; @@ -103,7 +103,7 @@ public function setCc(IAddress ...$value): self; * * @since 30.0.0 * - * @param array collection of all copied recipient mail address objects + * @return array collection of all copied recipient mail address objects */ public function getCc(): array; @@ -123,7 +123,7 @@ public function setBcc(IAddress ...$value): self; * * @since 30.0.0 * - * @param array collection of all blind copied recipient mail address objects + * @return array collection of all blind copied recipient mail address objects */ public function getBcc(): array; @@ -143,7 +143,7 @@ public function setSubject(string $value): self; * * @since 30.0.0 * - * @param string|null subject of message or null if one is not set + * @return string|null subject of message or null if one is not set */ public function getSubject(): string | null; @@ -166,7 +166,7 @@ public function setBody(string $value, bool $html): self; * * @since 30.0.0 * - * @param string|null html/plain body of this message or null if one is not set + * @return string|null html/plain body of this message or null if one is not set */ public function getBody(): string | null; @@ -186,7 +186,7 @@ public function setBodyHtml(string $value): self; * * @since 30.0.0 * - * @param string|null html body of this message or null if one is not set + * @return string|null html body of this message or null if one is not set */ public function getBodyHtml(): string | null; @@ -206,7 +206,7 @@ public function setBodyPlain(string $value): self; * * @since 30.0.0 * - * @param string|null plain text body of this message or null if one is not set + * @return string|null plain text body of this message or null if one is not set */ public function getBodyPlain(): string | null; diff --git a/lib/public/Mail/Provider/IMessageSend.php b/lib/public/Mail/Provider/IMessageSend.php index 25c2a2b0f4569..c5c473bcf2e8f 100644 --- a/lib/public/Mail/Provider/IMessageSend.php +++ b/lib/public/Mail/Provider/IMessageSend.php @@ -28,6 +28,6 @@ interface IMessageSend { * * @throws \OCP\Mail\Provider\Exception\SendException on failure, check message for reason */ - public function sendMessage(IMessage $message, array $option = []): void; + public function sendMessage(IMessage $message, array $options = []): void; } diff --git a/lib/public/Mail/Provider/Message.php b/lib/public/Mail/Provider/Message.php index 586389636402e..b5742985fcffe 100644 --- a/lib/public/Mail/Provider/Message.php +++ b/lib/public/Mail/Provider/Message.php @@ -63,7 +63,7 @@ public function setFrom(IAddress $value): self { * * @since 30.0.0 * - * @param IAddress|null sender's mail address object + * @return IAddress|null sender's mail address object */ public function getFrom(): IAddress | null { // evaluate if data store field exists and return value(s) or null otherwise @@ -91,7 +91,7 @@ public function setReplyTo(IAddress $value): self { * * @since 30.0.0 * - * @param IAddress|null sender's reply to mail address object + * @return IAddress|null sender's reply to mail address object */ public function getReplyTo(): IAddress | null { // evaluate if data store field exists and return value(s) or null otherwise @@ -119,7 +119,7 @@ public function setTo(IAddress ...$value): self { * * @since 30.0.0 * - * @param array collection of all recipient mail address objects + * @return array collection of all recipient mail address objects */ public function getTo(): array { // evaluate if data store field exists and return value(s) or empty collection @@ -147,7 +147,7 @@ public function setCc(IAddress ...$value): self { * * @since 30.0.0 * - * @param array collection of all copied recipient mail address objects + * @return array collection of all copied recipient mail address objects */ public function getCc(): array { // evaluate if data store field exists and return value(s) or empty collection @@ -175,7 +175,7 @@ public function setBcc(IAddress ...$value): self { * * @since 30.0.0 * - * @param array collection of all blind copied recipient mail address objects + * @return array collection of all blind copied recipient mail address objects */ public function getBcc(): array { // evaluate if data store field exists and return value(s) or empty collection @@ -203,7 +203,7 @@ public function setSubject(string $value): self { * * @since 30.0.0 * - * @param string|null subject of message or null if one is not set + * @return string|null subject of message or null if one is not set */ public function getSubject(): string | null { // evaluate if data store field exists and return value(s) or null otherwise @@ -238,7 +238,7 @@ public function setBody(string $value, bool $html = false): self { * * @since 30.0.0 * - * @param string|null html/plain body of this message or null if one is not set + * @return string|null html/plain body of this message or null if one is not set */ public function getBody(): string | null { // evaluate if data store field(s) exists and return value @@ -272,7 +272,7 @@ public function setBodyHtml(string $value): self { * * @since 30.0.0 * - * @param string|null html body of this message or null if one is not set + * @return string|null html body of this message or null if one is not set */ public function getBodyHtml(): string | null { // evaluate if data store field exists and return value(s) or null otherwise @@ -300,7 +300,7 @@ public function setBodyPlain(string $value): self { * * @since 30.0.0 * - * @param string|null plain text body of this message or null if one is not set + * @return string|null plain text body of this message or null if one is not set */ public function getBodyPlain(): string | null { // evaluate if data store field exists and return value(s) or null otherwise