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