NaifyView\Engine\ExecutionTimeLimitGuard クラス

ExecutionTimeLimitGuard — Engine layer の Execution Time Limit Guard

View と compiler / runtime の間で、render に必要な状態や制約を扱う。 public View API から内部構成を隠しつつ、観測しやすい単位へ分ける。

使用例

// View が RenderRequest を組み立て、Engine に render を委譲する。
// アプリ側は NaifyView::create($config) から View を作って使う。

プロパティ

名前型説明
private $seconds int root render 全体へ掛ける time limit 秒数

メソッド

メソッド説明
public __construct(int $seconds = 20): void インスタンスを初期化する
public setSeconds(int $seconds): void `setSeconds()` の値を設定する
public getSeconds(): int `getSeconds()` の値を返す
public apply(string $checkpointPrefix = engine:time-limit): void `apply()` を実行する