| @@ 250-262 (lines=13) @@ | ||
| 247 | * | |
| 248 | * @return $this | |
| 249 | */ | |
| 250 | public function unbind(Swift_InputByteStream $is) | |
| 251 |     { | |
| 252 | // Don't have to mirror anything | |
| 253 |         foreach ($this->_bound as $k => $stream) { | |
| 254 |             if ($stream === $is) { | |
| 255 | unset($this->_bound[$k]); | |
| 256 | ||
| 257 | break; | |
| 258 | } | |
| 259 | } | |
| 260 | ||
| 261 | return $this; | |
| 262 | } | |
| 263 | ||
| 264 | /** | |
| 265 | * Flush the contents of the stream (empty it) and set the internal pointer | |
| @@ 311-321 (lines=11) @@ | ||
| 308 | * | |
| 309 | * @param Swift_InputByteStream $is | |
| 310 | */ | |
| 311 | public function unbind(Swift_InputByteStream $is) | |
| 312 |     { | |
| 313 | // Don't have to mirror anything | |
| 314 |         foreach ($this->_bound as $k => $stream) { | |
| 315 |             if ($stream === $is) { | |
| 316 | unset($this->_bound[$k]); | |
| 317 | ||
| 318 | return; | |
| 319 | } | |
| 320 | } | |
| 321 | } | |
| 322 | ||
| 323 | /** | |
| 324 | * Flush the contents of the stream (empty it) and set the internal pointer | |