ResultPrinter
class ResultPrinter implements LoggerAwareInterface, ProgressIndicatorAwareInterface, OutputAwareInterface (View source)
Log the creation of Result objects.
Traits
Properties
protected TimeKeeper|null | $timer | from Timer | |
protected null|ProgressIndicator | $progressIndicator | from ProgressIndicatorAwareTrait |
Methods
Sets the Console Output.
Log that we are about to abort due to an error being encountered in 'stop on fail' mode.
No description
Details
in
Timer at line 12
protected
startTimer()
No description
in
Timer at line 20
protected
stopTimer()
No description
in
Timer at line 28
protected
resetTimer()
No description
in
Timer at line 36
protected float|null
getExecutionTime()
No description
int
progressIndicatorSteps()
No description
$this
setProgressIndicator(null|ProgressIndicator $progressIndicator)
No description
protected null|bool
hideProgressIndicator()
No description
protected
showProgressIndicator()
No description
protected
restoreProgressIndicator(bool $visible)
No description
protected int
getTotalExecutionTime()
No description
protected
startProgressIndicator()
No description
protected bool
inProgress()
No description
protected
stopProgressIndicator()
No description
protected
disableProgressIndicator()
No description
protected
detatchProgressIndicator()
No description
protected
advanceProgressIndicator(int $steps = 1)
No description
setOutput(OutputInterface $output)
Sets the Console Output.
null|bool
printResult(Result $result)
Log the result of a Robo task.
Returns 'true' if the message is printed, or false if it isn't.
printStopOnFail(Result $result)
Log that we are about to abort due to an error being encountered in 'stop on fail' mode.
protected bool
printError(Result $result)
Log the result of a Robo task that returned an error.
protected bool
printSuccess(Result $result)
Log the result of a Robo task that was successful.
protected
printMessage(string $level, string $message, array $context = [])
No description