<?php
declare(strict_types=1);

namespace PpPhp\Core\Platform\Console\Commands;

use PpPhp\Core\Platform\Console\AbstractCommand;

final class RetryCommand extends AbstractCommand
{
    public function name(): string { return 'retry'; }
    public function description(): string { return 'PPphp Retry Engine'; }

    public function handle(array $arguments = []): int
    {
        $this->title('PPphp Retry Engine');
        $runtime = new \PpPhp\Core\Platform\Event\Retry\RetryRuntime(); $this->line('Policies: ' . implode(', ', $runtime->policies()->names())); $this->line('Status: OK');
        return 0;
    }
}
