PHP Class Cml\Console\Component\Progress

显示文件 Open project: linhecheng/cmlphp

Protected Properties

Property Type Description
$percent integer 完成的百分比
$startTime integer 开始时间

Public Methods

Method Description
__construct ( ) Progress constructor.
getPercent ( ) : integer 获取百分比
increment ( integer $value = 1 ) 进入+ x
start ( ) 开始任务
success ( ) 任务完成

Method Details

__construct() public method

Progress constructor.
public __construct ( )

getPercent() public method

获取百分比
public getPercent ( ) : integer
return integer

increment() public method

进入+ x
public increment ( integer $value = 1 )
$value integer

start() public method

开始任务
public start ( )

success() public method

任务完成
public success ( )

Property Details

$percent protected_oe property

完成的百分比
protected int $percent
return integer

$startTime protected_oe property

开始时间
protected int $startTime
return integer