| @@ 321-329 (lines=9) @@ | ||
| 318 | /** |
|
| 319 | * {@inheritdoc} |
|
| 320 | */ |
|
| 321 | public function pad(int $size, $element): StreamInterface |
|
| 322 | { |
|
| 323 | $this->spec->validate($element); |
|
| 324 | ||
| 325 | $stream = clone $this; |
|
| 326 | $stream->values = $this->values->pad($size, $element); |
|
| 327 | ||
| 328 | return $stream; |
|
| 329 | } |
|
| 330 | ||
| 331 | /** |
|
| 332 | * {@inheritdoc} |
|
| @@ 441-449 (lines=9) @@ | ||
| 438 | /** |
|
| 439 | * {@inheritdoc} |
|
| 440 | */ |
|
| 441 | public function add($element): StreamInterface |
|
| 442 | { |
|
| 443 | $this->spec->validate($element); |
|
| 444 | ||
| 445 | $stream = clone $this; |
|
| 446 | $stream->values = $this->values->add($element); |
|
| 447 | ||
| 448 | return $stream; |
|
| 449 | } |
|
| 450 | ||
| 451 | /** |
|
| 452 | * {@inheritdoc} |
|