<?php
declare(strict_types=1);

namespace PpPhp\Core\Platform\Compatibility\Adapters;

use PpPhp\Core\Platform\Compatibility\CompatibilityAdapter;
use PpPhp\Core\Platform\Foundation\PlatformIdentity;
use PpPhp\Core\Platform\Foundation\PlatformVersion;

final class LegacyIdentityAdapter extends CompatibilityAdapter
{
    public function __construct()
    {
        parent::__construct('legacy-identity-adapter', 'core/Platform/Identity + core/Platform/Support/PlatformVersion', 'core/Platform/Foundation', 'active');
    }

    public function identity(string $id, string $type, string $label): PlatformIdentity { return new PlatformIdentity($id, $type, $label); }
    public function version(string $version = '1.0.0', string $status = 'stable'): PlatformVersion { return new PlatformVersion($version, $status); }
}
