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

startTimer()

No description

from  Timer
stopTimer()

No description

from  Timer
resetTimer()

No description

from  Timer
float|null
getExecutionTime()

No description

from  Timer
$this
setProgressIndicator(null|ProgressIndicator $progressIndicator)

No description

null|bool
hideProgressIndicator()

No description

restoreProgressIndicator(bool $visible)

No description

bool
inProgress()

No description

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.

printStopOnFail(Result $result)

Log that we are about to abort due to an error being encountered in 'stop on fail' mode.

bool
printError(Result $result)

Log the result of a Robo task that returned an error.

bool
printSuccess(Result $result)

Log the result of a Robo task that was successful.

printMessage(string $level, string $message, array $context = [])

No description

Details

protected startTimer()

No description

protected stopTimer()

No description

protected resetTimer()

No description

protected float|null getExecutionTime()

No description

Return Value

float|null

int progressIndicatorSteps()

No description

Return Value

int

$this setProgressIndicator(null|ProgressIndicator $progressIndicator)

No description

Parameters

null|ProgressIndicator $progressIndicator

Return Value

$this

protected null|bool hideProgressIndicator()

No description

Return Value

null|bool

protected showProgressIndicator()

No description

protected restoreProgressIndicator(bool $visible)

No description

Parameters

bool $visible

protected int getTotalExecutionTime()

No description

Return Value

int

protected startProgressIndicator()

No description

protected bool inProgress()

No description

Return Value

bool

protected stopProgressIndicator()

No description

protected disableProgressIndicator()

No description

protected detatchProgressIndicator()

No description

protected advanceProgressIndicator(int $steps = 1)

No description

Parameters

int $steps

setOutput(OutputInterface $output)

Sets the Console Output.

Parameters

OutputInterface $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.

Parameters

Result $result

Return Value

null|bool

printStopOnFail(Result $result)

Log that we are about to abort due to an error being encountered in 'stop on fail' mode.

Parameters

Result $result

protected bool printError(Result $result)

Log the result of a Robo task that returned an error.

Parameters

Result $result

Return Value

bool

protected bool printSuccess(Result $result)

Log the result of a Robo task that was successful.

Parameters

Result $result

Return Value

bool

protected printMessage(string $level, string $message, array $context = [])

No description

Parameters

string $level
string $message
array $context