PHP Class ConsoleKit\Widgets\Box

Inheritance: extends AbstractWidget
ファイルを表示 Open project: maximebf/consolekit

Protected Properties

Property Type Description
$lineCharacter string
$padding integer
$text string

Public Methods

Method Description
__construct ( ConsoleKit\TextWriter $writer = null, string $text = '', $lineCharacter = '*', $padding = 2 )
__toString ( )
getLineCharacter ( ) : string
getPadding ( ) : integer
getText ( ) : string
render ( ) : string
setLineCharacter ( $lineCharacter ) : Box
setPadding ( $padding ) : Box
setText ( $text ) : Box
write ( )

Method Details

__construct() public method

public __construct ( ConsoleKit\TextWriter $writer = null, string $text = '', $lineCharacter = '*', $padding = 2 )
$writer ConsoleKit\TextWriter
$text string

__toString() public method

public __toString ( )

getLineCharacter() public method

public getLineCharacter ( ) : string
return string

getPadding() public method

public getPadding ( ) : integer
return integer

getText() public method

public getText ( ) : string
return string

render() public method

public render ( ) : string
return string

setLineCharacter() public method

public setLineCharacter ( $lineCharacter ) : Box
return Box

setPadding() public method

public setPadding ( $padding ) : Box
return Box

setText() public method

public setText ( $text ) : Box
return Box

write() public method

public write ( )

Property Details

$lineCharacter protected_oe property

protected string $lineCharacter
return string

$padding protected_oe property

protected int $padding
return integer

$text protected_oe property

protected string $text
return string