PHP Class PhpSchool\CliMenu\Dialogue\Dialogue

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

Protected Properties

Property Type Description
$parentMenu PhpSchool\CliMenu\CliMenu
$style PhpSchool\CliMenu\MenuStyle
$terminal PhpSchool\CliMenu\Terminal\TerminalInterface
$text string
$x integer
$y integer

Public Methods

Method Description
__construct ( CliMenu $parentMenu, MenuStyle $menuStyle, PhpSchool\CliMenu\Terminal\TerminalInterface $terminal, string $text )
getStyle ( ) : MenuStyle

Protected Methods

Method Description
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

Method Details

__construct() public method

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 method

protected assertMenuOpen ( )

calculateCoordinates() protected method

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

emptyRow() protected method

Write an empty row
protected emptyRow ( )

getStyle() public method

public getStyle ( ) : MenuStyle
return PhpSchool\CliMenu\MenuStyle

write() protected method

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

Property Details

$parentMenu protected property

protected CliMenu,PhpSchool\CliMenu $parentMenu
return PhpSchool\CliMenu\CliMenu

$style protected property

protected MenuStyle,PhpSchool\CliMenu $style
return PhpSchool\CliMenu\MenuStyle

$terminal protected property

protected TerminalInterface,PhpSchool\CliMenu\Terminal $terminal
return PhpSchool\CliMenu\Terminal\TerminalInterface

$text protected property

protected string $text
return string

$x protected property

protected int $x
return integer

$y protected property

protected int $y
return integer