for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of plumphp/plum-console.
*
* (c) Florian Eckerstorfer <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Plum\PlumConsole;
use Plum\Plum\Writer\WriterInterface;
use Symfony\Component\Console\Helper\ProgressBar;
* ConsoleProgressWriter.
* @author Florian Eckerstorfer <[email protected]>
* @copyright 2014-2015 Florian Eckerstorfer
class ConsoleProgressWriter implements WriterInterface
{
/** @var ProgressBar */
protected $progressBar;
* @param ProgressBar $progressBar
* @codeCoverageIgnore
public function __construct(ProgressBar $progressBar)
$this->progressBar = $progressBar;
}
* Write the given item.
* @param mixed $item
public function writeItem($item)
$this->progressBar->advance();
* Prepare the writer.
public function prepare()
$this->progressBar->start();
* Finish the writer.
public function finish()
$this->progressBar->finish();