| @@ 304-314 (lines=11) @@ | ||
| 301 | * |
|
| 302 | * @param Swift_InputByteStream $is |
|
| 303 | */ |
|
| 304 | public function unbind(Swift_InputByteStream $is) |
|
| 305 | { |
|
| 306 | // Don't have to mirror anything |
|
| 307 | foreach ($this->_bound as $k => $stream) { |
|
| 308 | if ($stream === $is) { |
|
| 309 | unset($this->_bound[$k]); |
|
| 310 | ||
| 311 | return; |
|
| 312 | } |
|
| 313 | } |
|
| 314 | } |
|
| 315 | ||
| 316 | /** |
|
| 317 | * Flush the contents of the stream (empty it) and set the internal pointer |
|
| @@ 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 |
|