Вход Регистрация
Файл: gapps/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_8.php
Строк: 50
<?php

use SymfonyComponentConsoleInputInputInterface;
use 
SymfonyComponentConsoleOutputOutputInterface;
use 
SymfonyComponentConsoleTestsStyleSymfonyStyleWithForcedLineLength;
use 
SymfonyComponentConsoleHelperTableCell;

//Ensure formatting tables when using multiple headers with TableCell
return function (InputInterface $inputOutputInterface $output) {
    
$headers = array(
        array(new 
TableCell('Main table title', array('colspan' => 3))),
        array(
'ISBN''Title''Author'),
    );

    
$rows = array(
        array(
            
'978-0521567817',
            
'De Monarchia',
            new 
TableCell("Dante Alighierinspans multiple rows", array('rowspan' => 2)),
        ),
        array(
'978-0804169127''Divine Comedy'),
    );

    
$output = new SymfonyStyleWithForcedLineLength($input$output);
    
$output->table($headers$rows);
};
Онлайн: 0
Реклама