PHP Trait PhpSchool\CliMenu\MenuItem\SelectableTrait

Author: Michael Woodward ([email protected])
Afficher le fichier Open project: php-school/cli-menu

Méthodes publiques

Méthode 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 méthode

Can the item be selected
public canSelect ( ) : boolean
Résultat boolean

getRows() public méthode

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

hideItemExtra() public méthode

Disable showing item extra
public hideItemExtra ( )

showItemExtra() public méthode

Enable showing item extra
public showItemExtra ( )

showsItemExtra() public méthode

public showsItemExtra ( ) : boolean
Résultat boolean