@@ -57,6 +57,9 @@ public function attach(string $file, string $name = null, string $contentType =
57
57
}
58
58
}
59
59
60
+ /**
61
+ * @return $this
62
+ */
60
63
public function setSubject (string $ subject ): static
61
64
{
62
65
$ this ->message ->subject ($ subject );
@@ -69,6 +72,9 @@ public function getSubject(): ?string
69
72
return $ this ->message ->getSubject ();
70
73
}
71
74
75
+ /**
76
+ * @return $this
77
+ */
72
78
public function setReturnPath (string $ address ): static
73
79
{
74
80
$ this ->message ->returnPath ($ address );
@@ -81,6 +87,9 @@ public function getReturnPath(): string
81
87
return $ this ->message ->getReturnPath ();
82
88
}
83
89
90
+ /**
91
+ * @return $this
92
+ */
84
93
public function addFrom (string $ address , string $ name = '' ): static
85
94
{
86
95
$ this ->message ->addFrom (new Address ($ address , $ name ));
@@ -96,6 +105,9 @@ public function getFrom(): array
96
105
return $ this ->message ->getFrom ();
97
106
}
98
107
108
+ /**
109
+ * @return $this
110
+ */
99
111
public function addReplyTo (string $ address ): static
100
112
{
101
113
$ this ->message ->addReplyTo ($ address );
@@ -111,6 +123,9 @@ public function getReplyTo(): array
111
123
return $ this ->message ->getReplyTo ();
112
124
}
113
125
126
+ /**
127
+ * @return $this
128
+ */
114
129
public function addTo (string $ address , string $ name = '' ): static
115
130
{
116
131
$ this ->message ->addTo (new Address ($ address , $ name ));
@@ -126,6 +141,9 @@ public function getTo(): array
126
141
return $ this ->message ->getTo ();
127
142
}
128
143
144
+ /**
145
+ * @return $this
146
+ */
129
147
public function addCc (string $ address , string $ name = '' ): static
130
148
{
131
149
$ this ->message ->addCc (new Address ($ address , $ name ));
@@ -141,6 +159,9 @@ public function getCc(): array
141
159
return $ this ->message ->getCc ();
142
160
}
143
161
162
+ /**
163
+ * @return $this
164
+ */
144
165
public function addBcc (string $ address , string $ name = '' ): static
145
166
{
146
167
$ this ->message ->addBcc (new Address ($ address , $ name ));
@@ -156,6 +177,9 @@ public function getBcc(): array
156
177
return $ this ->message ->getBcc ();
157
178
}
158
179
180
+ /**
181
+ * @return $this
182
+ */
159
183
public function setPriority (int $ priority ): static
160
184
{
161
185
$ this ->message ->priority ($ priority );
0 commit comments