Skip to content
docsv0.1.1

CronReport

The outcome of one {@see CronRunner::run()} call: one {@see TaskResult} per task that was due, in the order the runner executed them. `hasFindings()` is true when any task failed, so a host command (Task 11's `cron:run`) exits non-zero the same way it would on a secret or a failed backup ({@see ReportInterface}).

CronReport::__construct()

public function __construct(array $results):

Parameters

Parameters of __construct()
NameTypeDescription
$resultslist<TaskResult>

CronReport::hasFindings()

public function hasFindings(): bool

True cuando alguna tarea programada terminó con error.

CronReport::toArray()

public function toArray(): array

Las tareas corridas como lista, cada una con su resultado.