Files
kulakpos_web/vendor/knuckleswtf/scribe/src/Tools/PathConfig.php
triagungbiantoro 417b7b7453
All checks were successful
Build, Push and Deploy / build-and-push (push) Successful in 3m27s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 16s
Build, Push and Deploy / deploy-staging (push) Successful in 31s
Build, Push and Deploy / deploy-production (push) Has been skipped
harga pada beranda terhubung ke manage plans di dashboard admin
2026-04-25 21:57:25 +07:00

47 lines
1.2 KiB
PHP
Executable File

<?php
namespace Knuckles\Scribe\Tools;
/**
* A home for path configurations. The important paths Scribe depends on.
*/
class PathConfig
{
public function __construct(
public string $configName = 'scribe',
// FOr lack of a better name, we'll call this `scribeDir`.
// It's sort of the cache dir, where Scribe stores its intermediate outputs.
protected ?string $scribeDir = null,
) {
if (is_null($this->scribeDir)) {
$this->scribeDir = ".{$this->configName}";
}
}
public function outputPath(?string $resolvePath = null, string $separator = '/'): string
{
if (is_null($resolvePath)) {
return $this->configName;
}
return "{$this->configName}{$separator}{$resolvePath}";
}
public function configFileName(): string
{
return "{$this->configName}.php";
}
/**
* The directory where Scribe writes its intermediate output (default is .<config> ie .scribe).
*/
public function intermediateOutputPath(?string $resolvePath = null, string $separator = '/'): string
{
if (is_null($resolvePath)) {
return $this->scribeDir;
}
return "{$this->scribeDir}{$separator}{$resolvePath}";
}
}