Skip to content

Commit 03f8710

Browse files
Add back @return $this annotations
1 parent 6487b6a commit 03f8710

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

Mime/WrappedTemplatedEmail.php

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ public function attach(string $file, string $name = null, string $contentType =
5757
}
5858
}
5959

60+
/**
61+
* @return $this
62+
*/
6063
public function setSubject(string $subject): static
6164
{
6265
$this->message->subject($subject);
@@ -69,6 +72,9 @@ public function getSubject(): ?string
6972
return $this->message->getSubject();
7073
}
7174

75+
/**
76+
* @return $this
77+
*/
7278
public function setReturnPath(string $address): static
7379
{
7480
$this->message->returnPath($address);
@@ -81,6 +87,9 @@ public function getReturnPath(): string
8187
return $this->message->getReturnPath();
8288
}
8389

90+
/**
91+
* @return $this
92+
*/
8493
public function addFrom(string $address, string $name = ''): static
8594
{
8695
$this->message->addFrom(new Address($address, $name));
@@ -96,6 +105,9 @@ public function getFrom(): array
96105
return $this->message->getFrom();
97106
}
98107

108+
/**
109+
* @return $this
110+
*/
99111
public function addReplyTo(string $address): static
100112
{
101113
$this->message->addReplyTo($address);
@@ -111,6 +123,9 @@ public function getReplyTo(): array
111123
return $this->message->getReplyTo();
112124
}
113125

126+
/**
127+
* @return $this
128+
*/
114129
public function addTo(string $address, string $name = ''): static
115130
{
116131
$this->message->addTo(new Address($address, $name));
@@ -126,6 +141,9 @@ public function getTo(): array
126141
return $this->message->getTo();
127142
}
128143

144+
/**
145+
* @return $this
146+
*/
129147
public function addCc(string $address, string $name = ''): static
130148
{
131149
$this->message->addCc(new Address($address, $name));
@@ -141,6 +159,9 @@ public function getCc(): array
141159
return $this->message->getCc();
142160
}
143161

162+
/**
163+
* @return $this
164+
*/
144165
public function addBcc(string $address, string $name = ''): static
145166
{
146167
$this->message->addBcc(new Address($address, $name));
@@ -156,6 +177,9 @@ public function getBcc(): array
156177
return $this->message->getBcc();
157178
}
158179

180+
/**
181+
* @return $this
182+
*/
159183
public function setPriority(int $priority): static
160184
{
161185
$this->message->priority($priority);

0 commit comments

Comments
 (0)