| @@ 332-340 (lines=9) @@ | ||
| 329 | /** |
|
| 330 | * {@inheritdoc} |
|
| 331 | */ |
|
| 332 | public function pad(int $size, $element): StreamInterface |
|
| 333 | { |
|
| 334 | $this->spec->validate($element); |
|
| 335 | ||
| 336 | $stream = clone $this; |
|
| 337 | $stream->values = $this->values->pad($size, $element); |
|
| 338 | ||
| 339 | return $stream; |
|
| 340 | } |
|
| 341 | ||
| 342 | /** |
|
| 343 | * {@inheritdoc} |
|
| @@ 452-460 (lines=9) @@ | ||
| 449 | /** |
|
| 450 | * {@inheritdoc} |
|
| 451 | */ |
|
| 452 | public function add($element): StreamInterface |
|
| 453 | { |
|
| 454 | $this->spec->validate($element); |
|
| 455 | ||
| 456 | $stream = clone $this; |
|
| 457 | $stream->values = $this->values->add($element); |
|
| 458 | ||
| 459 | return $stream; |
|
| 460 | } |
|
| 461 | ||
| 462 | /** |
|
| 463 | * {@inheritdoc} |
|