for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Port\Steps\Step;
use Port\Steps\Step;
use Port\Writer;
/**
* @author Márk Sági-Kazár <[email protected]>
*/
class WriterStep implements Step
{
* @var Writer
private $writer;
* @param Writer $writer
public function __construct(Writer $writer)
$this->writer = $writer;
}
* {@inheritdoc}
public function process($item, callable $next)
$this->writer->writeItem($item);
return $next($item);