PHP Class Cml\Console\Component\Box

显示文件 Open project: linhecheng/cmlphp

Protected Properties

Property Type Description
$padding integer 间隔
$periphery string 外围标识符
$text string 要显示的文本

Public Methods

Method Description
__construct ( string $text = '', string $periphery = '*', integer $padding = 2 ) Box constructor.
__toString ( ) : string 渲染文本并返回
render ( ) : string 渲染文本并返回

Method Details

__construct() public method

Box constructor.
public __construct ( string $text = '', string $periphery = '*', integer $padding = 2 )
$text string 要处理的文本
$periphery string 外围字符
$padding integer 内容与左右边框的距离

__toString() public method

渲染文本并返回
public __toString ( ) : string
return string

render() public method

渲染文本并返回
public render ( ) : string
return string

Property Details

$padding protected_oe property

间隔
protected int $padding
return integer

$periphery protected_oe property

外围标识符
protected string $periphery
return string

$text protected_oe property

要显示的文本
protected string $text
return string