PHP 클래스 PhpSchool\CliMenu\Dialogue\Dialogue

저자: Aydin Hassan ([email protected])
파일 보기 프로젝트 열기: php-school/cli-menu

보호된 프로퍼티들

프로퍼티 타입 설명
$parentMenu PhpSchool\CliMenu\CliMenu
$style PhpSchool\CliMenu\MenuStyle
$terminal PhpSchool\CliMenu\Terminal\TerminalInterface
$text string
$x integer
$y integer

공개 메소드들

메소드 설명
__construct ( CliMenu $parentMenu, MenuStyle $menuStyle, PhpSchool\CliMenu\Terminal\TerminalInterface $terminal, string $text )
getStyle ( ) : MenuStyle

보호된 메소드들

메소드 설명
assertMenuOpen ( )
calculateCoordinates ( ) Calculate the co-ordinates to write the messages
emptyRow ( ) Write an empty row
write ( string $text, integer $column = null ) Write some text at a particular column

메소드 상세

__construct() 공개 메소드

public __construct ( CliMenu $parentMenu, MenuStyle $menuStyle, PhpSchool\CliMenu\Terminal\TerminalInterface $terminal, string $text )
$parentMenu PhpSchool\CliMenu\CliMenu
$menuStyle PhpSchool\CliMenu\MenuStyle
$terminal PhpSchool\CliMenu\Terminal\TerminalInterface
$text string

assertMenuOpen() 보호된 메소드

protected assertMenuOpen ( )

calculateCoordinates() 보호된 메소드

Calculate the co-ordinates to write the messages
protected calculateCoordinates ( )

emptyRow() 보호된 메소드

Write an empty row
protected emptyRow ( )

getStyle() 공개 메소드

public getStyle ( ) : MenuStyle
리턴 PhpSchool\CliMenu\MenuStyle

write() 보호된 메소드

Write some text at a particular column
protected write ( string $text, integer $column = null )
$text string
$column integer

프로퍼티 상세

$parentMenu 보호되어 있는 프로퍼티

protected CliMenu,PhpSchool\CliMenu $parentMenu
리턴 PhpSchool\CliMenu\CliMenu

$style 보호되어 있는 프로퍼티

protected MenuStyle,PhpSchool\CliMenu $style
리턴 PhpSchool\CliMenu\MenuStyle

$terminal 보호되어 있는 프로퍼티

protected TerminalInterface,PhpSchool\CliMenu\Terminal $terminal
리턴 PhpSchool\CliMenu\Terminal\TerminalInterface

$text 보호되어 있는 프로퍼티

protected string $text
리턴 string

$x 보호되어 있는 프로퍼티

protected int $x
리턴 integer

$y 보호되어 있는 프로퍼티

protected int $y
리턴 integer