<?php
declare(strict_types=1);

namespace PpPhp\Core\Platform\Console\Commands;

use PpPhp\Core\Platform\Console\AbstractCommand;

final class WorkerQuarantineClearCommand extends AbstractCommand
{
    public function name(): string { return 'worker:quarantine:clear'; }
    public function description(): string { return 'PPphp Worker Quarantine Clear'; }

    public function handle(array $arguments = []): int
    {
        $this->title('PPphp Worker Quarantine Clear');
        $manager = \PpPhp\Core\Platform\Event\Worker\Monitoring\WorkerQuarantineManager::instance(\PpPhp\Core\Platform\Console\ConsolePath::basePath()); $manager->clear(); $this->line('Cleared: YES');
        return 0;
    }
}
