PHP Trait PhpSchool\CliMenu\MenuItem\SelectableTrait

Author: Michael Woodward ([email protected])
Show file Open project: php-school/cli-menu

Public Methods

Method Description
canSelect ( ) : boolean Can the item be selected
getRows ( MenuStyle $style, boolean $selected = false ) : array The output text for the item
hideItemExtra ( ) Disable showing item extra
showItemExtra ( ) Enable showing item extra
showsItemExtra ( ) : boolean

Method Details

canSelect() public method

Can the item be selected
public canSelect ( ) : boolean
return boolean

getRows() public method

The output text for the item
public getRows ( MenuStyle $style, boolean $selected = false ) : array
$style PhpSchool\CliMenu\MenuStyle
$selected boolean
return array

hideItemExtra() public method

Disable showing item extra
public hideItemExtra ( )

showItemExtra() public method

Enable showing item extra
public showItemExtra ( )

showsItemExtra() public method

public showsItemExtra ( ) : boolean
return boolean