<?php
declare(strict_types=1);

namespace PpPhp\Core\Platform\DI\Compiler\Factory;

final class FactoryCachePaths
{
    public static function directory(string $basePath): string
    {
        return rtrim($basePath, DIRECTORY_SEPARATOR) . '/storage/cache/di/factories';
    }

    public static function file(string $basePath, string $factoryClassShortName): string
    {
        return self::directory($basePath) . '/' . $factoryClassShortName . '.php';
    }

    public static function relativeDirectory(): string
    {
        return 'storage/cache/di/factories';
    }
}
