PHP 클래스 PhpSchool\CliMenu\MenuItem\MenuMenuItem

저자: Michael Woodward ([email protected])
상속: implements PhpSchool\CliMenu\MenuItem\MenuItemInterface, use trait SelectableTrait
파일 보기 프로젝트 열기: php-school/cli-menu 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( string $text, CliMenu $subMenu, boolean $disabled = false )
getSelectAction ( ) : callable Execute the items callable if required
getText ( ) : string Return the raw string of text
showSubMenu ( CliMenu $parentMenu ) Display the sub menu

메소드 상세

__construct() 공개 메소드

public __construct ( string $text, CliMenu $subMenu, boolean $disabled = false )
$text string
$subMenu PhpSchool\CliMenu\CliMenu
$disabled boolean

getSelectAction() 공개 메소드

Execute the items callable if required
public getSelectAction ( ) : callable
리턴 callable

getText() 공개 메소드

Return the raw string of text
public getText ( ) : string
리턴 string

showSubMenu() 공개 메소드

Display the sub menu
public showSubMenu ( CliMenu $parentMenu )
$parentMenu PhpSchool\CliMenu\CliMenu