| 1 | <?php |
||
| 15 | class ConsoleProgressWriter implements Writer |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * @var OutputInterface |
||
| 19 | */ |
||
| 20 | protected $output; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var ProgressBar |
||
| 24 | */ |
||
| 25 | protected $progress; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @var string |
||
| 29 | */ |
||
| 30 | protected $verbosity; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @var CountableReader |
||
| 34 | */ |
||
| 35 | protected $reader; |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @var integer |
||
| 39 | */ |
||
| 40 | protected $redrawFrequency; |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @param OutputInterface $output |
||
| 44 | * @param CountableReader $reader |
||
| 45 | * @param string $verbosity |
||
| 46 | * @param integer $redrawFrequency |
||
| 47 | */ |
||
| 48 | 1 | public function __construct( |
|
| 59 | |||
| 60 | /** |
||
| 61 | * {@inheritdoc} |
||
| 62 | */ |
||
| 63 | 1 | public function prepare() |
|
| 70 | |||
| 71 | /** |
||
| 72 | * {@inheritdoc} |
||
| 73 | */ |
||
| 74 | 1 | public function writeItem(array $item) |
|
| 78 | |||
| 79 | /** |
||
| 80 | * {@inheritdoc} |
||
| 81 | */ |
||
| 82 | 1 | public function finish() |
|
| 86 | |||
| 87 | /** |
||
| 88 | * @return string |
||
| 89 | */ |
||
| 90 | 1 | public function getVerbosity() |
|
| 94 | |||
| 95 | /** |
||
| 96 | * @return integer |
||
| 97 | */ |
||
| 98 | public function getRedrawFrequency() |
||
| 102 | } |
||
| 103 |