for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of monofony.
*
* (c) Mobizel
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace App\Command\Helper;
use Symfony\Component\Console\Helper\Table;
use Symfony\Component\Console\Output\OutputInterface;
trait RenderTable
{
/**
* @param array $headers
* @param array $rows
* @param OutputInterface $output
private function renderTable(array $headers, array $rows, OutputInterface $output)
__construct
$table = new Table($output);
$table
->setHeaders($headers)
->setRows($rows)
->render()
;
}