| @@ 414-424 (lines=11) @@ | ||
| 411 | /** |
|
| 412 | * {@inheritdoc} |
|
| 413 | */ |
|
| 414 | public function append(StreamInterface $stream): StreamInterface |
|
| 415 | { |
|
| 416 | $this->validate($stream); |
|
| 417 | ||
| 418 | $self = clone $this; |
|
| 419 | $self->values = $this->values->append( |
|
| 420 | new Sequence(...$stream) |
|
| 421 | ); |
|
| 422 | ||
| 423 | return $self; |
|
| 424 | } |
|
| 425 | ||
| 426 | /** |
|
| 427 | * {@inheritdoc} |
|
| @@ 429-439 (lines=11) @@ | ||
| 426 | /** |
|
| 427 | * {@inheritdoc} |
|
| 428 | */ |
|
| 429 | public function intersect(StreamInterface $stream): StreamInterface |
|
| 430 | { |
|
| 431 | $this->validate($stream); |
|
| 432 | ||
| 433 | $self = clone $this; |
|
| 434 | $self->values = $this->values->intersect( |
|
| 435 | new Sequence(...$stream) |
|
| 436 | ); |
|
| 437 | ||
| 438 | return $self; |
|
| 439 | } |
|
| 440 | ||
| 441 | /** |
|
| 442 | * {@inheritdoc} |
|