PHP Class Cml\Console\Component\Box

Afficher le fichier Open project: linhecheng/cmlphp

Protected Properties

Свойство Type Description
$padding integer 间隔
$periphery string 外围标识符
$text string 要显示的文本

Méthodes publiques

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

Method Details

__construct() public méthode

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

__toString() public méthode

渲染文本并返回
public __toString ( ) : string
Résultat string

render() public méthode

渲染文本并返回
public render ( ) : string
Résultat string

Property Details

$padding protected_oe property

间隔
protected int $padding
Résultat integer

$periphery protected_oe property

外围标识符
protected string $periphery
Résultat string

$text protected_oe property

要显示的文本
protected string $text
Résultat string