for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
/**
* GpsLab component.
*
* @author Peter Gribanov <[email protected]>
* @copyright Copyright (c) 2011-2019, Peter Gribanov
* @license http://opensource.org/licenses/MIT
*/
namespace GpsLab\Component\Sitemap\Stream;
use GpsLab\Component\Sitemap\Url\Url;
class MultiStream implements Stream
{
* @var Stream[]
private $streams = [];
* @param Stream ...$streams
public function __construct(Stream ...$streams)
$this->streams = $streams;
}
public function open(): void
foreach ($this->streams as $stream) {
$stream->open();
public function close(): void
$stream->close();
* @param Url $url
public function push(Url $url): void
$stream->push($url);