NaifyView\Artifact\CompiledClassArtifact クラス

implements NaifyView\Artifact\ArtifactInterface

CompiledClassArtifact — render artifact の contract / value object

Engine と compiler の間で、実行可能な template artifact を受け渡すための型。 アプリ側へ露出させず、render pipeline 内の責務境界として使う。

使用例

// Engine / compiler が render 済み artifact として扱う。
// アプリ側は通常 NaifyView::create($config)->render() 経由で受け取る。

プロパティ

名前型説明
private $template string
private $resolvedPath string
private $compiledFilePath string
private $compiledClassName string
private $compiledSource ?string
private $cacheStatus string
private $cacheReason string
private $runtime CompiledTemplateRuntime
private $dependencyPlan array

メソッド

メソッド説明
public __construct(string $template, string $resolvedPath, string $compiledFilePath, string $compiledClassName, ?string $compiledSource, string $cacheStatus, string $cacheReason, CompiledTemplateRuntime $runtime, array $dependencyPlan = '...'): void インスタンスを初期化する
public getTemplate(): string `getTemplate()` の値を返す
public getResolvedPath(): string `getResolvedPath()` の値を返す
public getCompiledFilePath(): string `getCompiledFilePath()` の値を返す
public getCompiledClassName(): string `getCompiledClassName()` の値を返す
public getCompiledSource(): string `getCompiledSource()` の値を返す
public getCompiledPhpBytes(): int `getCompiledPhpBytes()` の値を返す
public getCacheStatus(): string `getCacheStatus()` の値を返す
public getCacheReason(): string `getCacheReason()` の値を返す
public getDependencyPlan(): array `getDependencyPlan()` の値を返す
public withDependencyPlan(array $dependencyPlan): CompiledClassArtifact `withDependencyPlan()` を実行する
public execute(array $context = '...', ?RuntimeSession $runtimeSession): string artifact を実行する