@@ 150-165 (lines=16) @@ | ||
147 | * |
|
148 | * @return string |
|
149 | */ |
|
150 | public function toString() |
|
151 | { |
|
152 | if (empty($this->headerSigners) && empty($this->bodySigners)) { |
|
153 | return parent::toString(); |
|
154 | } |
|
155 | ||
156 | $this->saveMessage(); |
|
157 | ||
158 | $this->doSign(); |
|
159 | ||
160 | $string = parent::toString(); |
|
161 | ||
162 | $this->restoreMessage(); |
|
163 | ||
164 | return $string; |
|
165 | } |
|
166 | ||
167 | /** |
|
168 | * Write this message to a {@link Swift_InputByteStream}. |
|
@@ 172-187 (lines=16) @@ | ||
169 | * |
|
170 | * @param Swift_InputByteStream $is |
|
171 | */ |
|
172 | public function toByteStream(Swift_InputByteStream $is) |
|
173 | { |
|
174 | if (empty($this->headerSigners) && empty($this->bodySigners)) { |
|
175 | parent::toByteStream($is); |
|
176 | ||
177 | return; |
|
178 | } |
|
179 | ||
180 | $this->saveMessage(); |
|
181 | ||
182 | $this->doSign(); |
|
183 | ||
184 | parent::toByteStream($is); |
|
185 | ||
186 | $this->restoreMessage(); |
|
187 | } |
|
188 | ||
189 | public function __wakeup() |
|
190 | { |