<?php

// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedNamespaceFound -- APD is the established namespace shared with the Pro add-on and retained for backward compatibility.
namespace APD\Support;

defined('ABSPATH') || exit;

class Assets
{
    public static function version(string $relativePath) : string
    {
        $path = ASUKA_PRODUCT_DESIGNER_PATH . ltrim($relativePath, '/');
        return file_exists($path) ? (string) filemtime($path) : ASUKA_PRODUCT_DESIGNER_VERSION;
    }
}
