PHP 클래스 PhpSchool\CliMenu\MenuItem\SelectableItem

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

공개 메소드들

메소드 설명
__construct ( string $text, callable $selectAction, boolean $showItemExtra = false, boolean $disabled = false )
getSelectAction ( ) : callable | void Execute the items callable if required
getText ( ) : string Return the raw string of text

메소드 상세

__construct() 공개 메소드

public __construct ( string $text, callable $selectAction, boolean $showItemExtra = false, boolean $disabled = false )
$text string
$selectAction callable
$showItemExtra boolean
$disabled boolean

getSelectAction() 공개 메소드

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

getText() 공개 메소드

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