Knp\Bundle\KnpBundlesBundle\Command\KbSolrReindexCommand::printOutput PHP Метод

printOutput() приватный Метод

private printOutput ( $output, $key, $count )
    private function printOutput($output, $key, $count)
    {
        $percent = round($key / $count * 100, 2);
        $output->write(sprintf(" %.2f%% [", $percent));
        for ($i = 0; $i < 100; $i++) {
            if ($i == round($percent)) {
                $output->write('>');
            } elseif ($i < round($percent)) {
                $output->write('=');
            } else {
                $output->write('.');
            }
        }
        $output->write("] {$key} of {$count}\r");
    }