| @@ 403-413 (lines=11) @@ | ||
| 400 | /** |
|
| 401 | * {@inheritdoc} |
|
| 402 | */ |
|
| 403 | public function append(StreamInterface $stream): StreamInterface |
|
| 404 | { |
|
| 405 | $this->validate($stream); |
|
| 406 | ||
| 407 | $self = clone $this; |
|
| 408 | $self->values = $this->values->append( |
|
| 409 | new Sequence(...$stream) |
|
| 410 | ); |
|
| 411 | ||
| 412 | return $self; |
|
| 413 | } |
|
| 414 | ||
| 415 | /** |
|
| 416 | * {@inheritdoc} |
|
| @@ 418-428 (lines=11) @@ | ||
| 415 | /** |
|
| 416 | * {@inheritdoc} |
|
| 417 | */ |
|
| 418 | public function intersect(StreamInterface $stream): StreamInterface |
|
| 419 | { |
|
| 420 | $this->validate($stream); |
|
| 421 | ||
| 422 | $self = clone $this; |
|
| 423 | $self->values = $this->values->intersect( |
|
| 424 | new Sequence(...$stream) |
|
| 425 | ); |
|
| 426 | ||
| 427 | return $self; |
|
| 428 | } |
|
| 429 | ||
| 430 | /** |
|
| 431 | * {@inheritdoc} |
|