@@ -64,7 +64,7 @@ public function getMaxLineLength(): int
64
64
*
65
65
* @return $this
66
66
*/
67
- public function addMailboxListHeader (string $ name , array $ addresses )
67
+ public function addMailboxListHeader (string $ name , array $ addresses ): self
68
68
{
69
69
return $ this ->add (new MailboxListHeader ($ name , Address::createArray ($ addresses )));
70
70
}
@@ -74,7 +74,7 @@ public function addMailboxListHeader(string $name, array $addresses)
74
74
*
75
75
* @return $this
76
76
*/
77
- public function addMailboxHeader (string $ name , $ address )
77
+ public function addMailboxHeader (string $ name , $ address ): self
78
78
{
79
79
return $ this ->add (new MailboxHeader ($ name , Address::create ($ address )));
80
80
}
@@ -84,7 +84,7 @@ public function addMailboxHeader(string $name, $address)
84
84
*
85
85
* @return $this
86
86
*/
87
- public function addIdHeader (string $ name , $ ids )
87
+ public function addIdHeader (string $ name , $ ids ): self
88
88
{
89
89
return $ this ->add (new IdentificationHeader ($ name , $ ids ));
90
90
}
@@ -94,31 +94,31 @@ public function addIdHeader(string $name, $ids)
94
94
*
95
95
* @return $this
96
96
*/
97
- public function addPathHeader (string $ name , $ path )
97
+ public function addPathHeader (string $ name , $ path ): self
98
98
{
99
99
return $ this ->add (new PathHeader ($ name , $ path instanceof Address ? $ path : new Address ($ path )));
100
100
}
101
101
102
102
/**
103
103
* @return $this
104
104
*/
105
- public function addDateHeader (string $ name , \DateTimeInterface $ dateTime )
105
+ public function addDateHeader (string $ name , \DateTimeInterface $ dateTime ): self
106
106
{
107
107
return $ this ->add (new DateHeader ($ name , $ dateTime ));
108
108
}
109
109
110
110
/**
111
111
* @return $this
112
112
*/
113
- public function addTextHeader (string $ name , string $ value )
113
+ public function addTextHeader (string $ name , string $ value ): self
114
114
{
115
115
return $ this ->add (new UnstructuredHeader ($ name , $ value ));
116
116
}
117
117
118
118
/**
119
119
* @return $this
120
120
*/
121
- public function addParameterizedHeader (string $ name , string $ value , array $ params = [])
121
+ public function addParameterizedHeader (string $ name , string $ value , array $ params = []): self
122
122
{
123
123
return $ this ->add (new ParameterizedHeader ($ name , $ value , $ params ));
124
124
}
@@ -131,7 +131,7 @@ public function has(string $name): bool
131
131
/**
132
132
* @return $this
133
133
*/
134
- public function add (HeaderInterface $ header )
134
+ public function add (HeaderInterface $ header ): self
135
135
{
136
136
static $ map = [
137
137
'date ' => DateHeader::class,
0 commit comments