NaifyView\Compiler\CompiledGeneratedSourceMetadataBuilder クラス

CompiledGeneratedSourceMetadataBuilder — compiled mainline の Compiled Generated Source Metadata Builder

template を generated PHP class へ落とす compile pipeline の一部。 大きな compiler へ責務を押し込まず、source 生成・依存計画・fast path などを小さく分ける。

使用例

// Engine が warm-hit できない template を compiled artifact へ変換する時に使う。
// 通常は View / Engine 経由で呼ばれ、アプリ側から直接操作しない。

プロパティ

名前型説明
private $compileLevel string
private $compilerVersion string
private $templatePathResolver CompiledTemplatePathResolver

メソッド

メソッド説明
public __construct(string $compileLevel, string $compilerVersion, CompiledTemplatePathResolver $templatePathResolver): void インスタンスを初期化する
public buildClassCommentLines(string $templatePath): array `buildClassCommentLines()` を実行する
public buildRenderDocblockLines(): array `buildRenderDocblockLines()` を実行する
public buildConstructorDocblockLines(): array `buildConstructorDocblockLines()` を実行する
public buildSourceCommentLines(string $indent, string $comment): array `buildSourceCommentLines()` を実行する
public buildSourceTemplatePath(string $resolvedPath): string `buildSourceTemplatePath()` を実行する
public buildSourceDependencyPlan(array $dependencyPlan): array `buildSourceDependencyPlan()` を実行する
public appendCompileSurfaceFeatureFlags(array $featureFlags, string $compileSurface): array `appendCompileSurfaceFeatureFlags()` を実行する