TaskProgress
Task progress trait
Table of Contents
Properties
- $progressSleep : int
- Delay value
- $progressStep : int
- Current task progress step
- $totalProgressSteps : int|null
- Total task progress steps null for unknow
Methods
- initTaskProgress() : void
- Init task progress response
- sendProgressResponse() : void
- Flush progress response
- taskProgressEnd() : void
- Set end task progress
Properties
$progressSleep
Delay value
protected
int
$progressSleep
= 1
$progressStep
Current task progress step
protected
int
$progressStep
= 0
$totalProgressSteps
Total task progress steps null for unknow
protected
int|null
$totalProgressSteps
= null
Methods
initTaskProgress()
Init task progress response
public
initTaskProgress([int|null $totalSteps = null ][, int $sleep = 1 ]) : void
Parameters
- $totalSteps : int|null = null
- $sleep : int = 1
sendProgressResponse()
Flush progress response
public
sendProgressResponse() : void
taskProgressEnd()
Set end task progress
public
taskProgressEnd() : void