<?php
declare(strict_types=1);

namespace PpPhp\Core\Platform\Compatibility\Adapters;

use PpPhp\Core\Platform\Compatibility\CompatibilityAdapter;

final class LegacyDesignerAdapter extends CompatibilityAdapter
{
    public function __construct()
    {
        parent::__construct('legacy-designer-adapter', 'core/Designer', 'modules/Designer + packages/ui/ppui', 'migration-review');
    }

    public function migrationStatus(): array
    {
        return [
            'coreDesigner' => 'deprecated-review',
            'moduleDesigner' => 'canonical-runtime-owner',
            'ppui' => 'canonical-ui-definition-owner',
            'nextStep' => 'Move reusable UI definitions into PPUI and route runtime actions through modules/Designer.',
        ];
    }
}
