<?php

namespace Licenzo\Framework\Foundation;

use Licenzo\Framework\Contracts\Kernel\Kernel;
use Licenzo\Framework\Http\Request;
use Licenzo\Framework\Http\Response;

class CronKernel implements Kernel
{
    protected $app;

    public function __construct(Application $app)
    {
        $this->app = $app;
    }

    public function bootstrap(): void
    {
        // Cron bootstrap — reserved for future scheduled task registration
    }

    public function handle(Request $request): Response
    {
        // Cron tasks are dispatched via WP-Cron, not through HTTP
        return new Response('', 200);
    }

    public function terminate(Request $request, Response $response): void
    {
        // No-op for cron kernel
    }

    public function getApplication(): Application
    {
        return $this->app;
    }
}
