Phpcraft
Public Member Functions | List of all members
Phpcraft\UserInterface Class Reference
Inheritance diagram for Phpcraft\UserInterface:
Inheritance graph
[legend]

Public Member Functions

 __construct ($title=null)
 
 render ()
 
 add (string $message)
 
 append (string $message)
 

Constructor & Destructor Documentation

◆ __construct()

Phpcraft\UserInterface::__construct (   $title = null)
Parameters
string | null$titleThe title that the terminal window will be given or null.

Reimplemented in Phpcraft\PlainUserInterface.

Member Function Documentation

◆ add()

Phpcraft\UserInterface::add ( string  $message)
abstract

Adds a message to be printed on the user interface.

Parameters
string$message
Returns
UserInterface $this

Reimplemented in Phpcraft\FancyUserInterface, and Phpcraft\PlainUserInterface.

◆ append()

Phpcraft\UserInterface::append ( string  $message)
abstract

Appends to the last message or adds a new message if not supported by the user interface.

Parameters
string$message
Returns
UserInterface $this

Reimplemented in Phpcraft\PlainUserInterface, and Phpcraft\FancyUserInterface.

◆ render()

Phpcraft\UserInterface::render ( )
abstract