\adminmatrix\swoole\supportConsoleTable

Summary

Methods
Properties
Constants
__construct()
setHeader()
addRow()
setTable()
render()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$table
$appendRows
N/A

Properties

$table

$table : \think\console\Table

Type

\think\console\Table

$appendRows

$appendRows : array<int,array<int,string>>

Type

array>

Methods

__construct()

__construct() : mixed

Returns

mixed —

setHeader()

setHeader(array<int,string>  $header) : $this

设置表头

Parameters

array $header

Returns

$this —

addRow()

addRow(array<int,string>  $row) : $this

追加单行

Parameters

array $row

Returns

$this —

setTable()

setTable(array<int,array<int,string>>  $rows) : $this

追加多行(你提到的 setTable:追加行)

Parameters

array> $rows

Returns

$this —

render()

render(\think\console\Output  $output, string  $title = 'Swoole Server Configuration') : void

渲染并输出表格(带装饰线和标题)

Parameters

\think\console\Output $output
string $title