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