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