<?php

declare(strict_types=1);

namespace PpPhp\Core\Platform\Support;

/**
 * PPphp Platform Version Information
 *
 * Single source of truth for platform versioning.
 */
final class PlatformVersion
{
    public const NAME = 'PPphp Platform';

    public const VERSION = '2.0.0-dev';

    public const BUILD = '2026.001';

    public const CODENAME = 'Foundation';

    public const RELEASE_DATE = 'Development';

    private function __construct() {}

    public static function fullVersion(): string
    {
        return self::NAME . ' ' . self::VERSION;
    }

    public static function build(): string
    {
        return self::BUILD;
    }

    public static function codename(): string
    {
        return self::CODENAME;
    }

    public static function info(): array
    {
        return [
            'name' => self::NAME,
            'version' => self::VERSION,
            'build' => self::BUILD,
            'codename' => self::CODENAME,
            'release_date' => self::RELEASE_DATE,
        ];
    }
}
