class ListDataFromKeys extends AbstractListData (View source)

deprecated Use UnstructuredListData

Methods

__construct($data)

No description

array
getListData(FormatterOptions $options)

Convert data to a format suitable for use in a list.

getReorderedFieldLabels($data, $options, $defaults)

No description

getFields($options, $defaults)

No description

array
defaultOptions()

A structured list may provide its own set of default options. These will be used in place of the command's default options (from the annotations) in instances where the user does not provide the options explicitly (on the commandline) or implicitly (via a configuration file).

Details

__construct($data)

No description

Parameters

$data

array getListData(FormatterOptions $options)

Convert data to a format suitable for use in a list.

By default, the array values will be used. Implement ListDataInterface to use some other criteria (e.g. array keys).

Parameters

FormatterOptions $options

Return Value

array

protected getReorderedFieldLabels($data, $options, $defaults)

No description

Parameters

$data
$options
$defaults

protected getFields($options, $defaults)

No description

Parameters

$options
$defaults

protected array defaultOptions()

A structured list may provide its own set of default options. These will be used in place of the command's default options (from the annotations) in instances where the user does not provide the options explicitly (on the commandline) or implicitly (via a configuration file).

Return Value

array