src/Viserio/Component/Cron/Command/CronListCommand.php
public function handle(Schedule $schedule): int
    {
        $cronJobs = $schedule->getCronJobs();

        $table = new Table($this->getOutput());
        $table->setHeaders(['Jobname', 'Expression', 'Summary']);

        $rows = [];

        /** @var Cron $cronJob */
        foreach ($cronJobs as $cronJob) {
            $rows[] = [
                $cronJob->getCommand(),
                $cronJob->getExpression(),
                $cronJob->getSummaryForDisplay(),
            ];
        }

        $table->setRows($rows);

        $table->render();

        return 0;
    }
public function handle(Schedule $schedule): int
    {
        $cronJobs = $schedule->getCronJobs();

        $table = new Table($this->getOutput());
        $table->setHeaders(['Jobname', 'Expression', 'Summary']);

        $rows = [];

        /** @var Cron $cronJob */
        foreach ($cronJobs as $cronJob) {
            $rows[] = [
                $cronJob->getCommand(),
                $cronJob->getExpression(),
                $cronJob->getSummaryForDisplay(),
            ];
        }

        $table->setRows($rows);

        $table->render();

        return 0;
    }
{@inheritdoc}

@param \Viserio\Component\Cron\Schedule $schedule