<?php
declare(strict_types=1);

namespace PpPhp\Core\Platform\Console\Commands;

use PpPhp\Core\Platform\Console\AbstractCommand;
use PpPhp\Core\Platform\Developer\PlatformCacheManager;

final class CacheClearCommand extends AbstractCommand
{
    public function name(): string { return 'cache:clear'; }
    public function description(): string { return 'Clear platform caches.'; }

    public function handle(array $arguments = []): int
    {
        (new PlatformCacheManager())->clear();
        $this->line('Platform caches cleared.');
        return 0;
    }
}
