\Inhere\Console\Component\FormatterSingleList

Class SingleList - Format and render a single list

Summary

Methods
Properties
Constants
show()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

show()

show(array  $data, string  $title = 'Information', array  $opts = array()) : integer|string

Format and render a single list

$title = 'list title';
$data = [
     'name'  => 'value text',
     'name2' => 'value text 2',
];

Parameters

array $data
string $title
array $opts

More {@see FormatUtil::spliceKeyValue()}

Returns

integer|string