NaifyView\Dialect\Naify\NaifyFilterArgumentRuntime クラス
NaifyFilterArgumentRuntime — Naify dialect の Naify Filter Argument Runtime
Native template 構文の parser / evaluator / runtime contract を担当する。 Twig / Smarty 互換文化を混ぜず、Naify として持つ構文 surface をここで固定する。
使用例
// Naify dialect の parser / expression / runtime helper として使う。
// 通常は NaifyParser や compiler/executor から間接的に呼ばれる。
メソッド
| メソッド | 説明 |
|---|---|
public
normalizeNumericValue(mixed $value, string $expression, ?string $filter): int|float
|
`normalizeNumericValue()` を実行する |
public
normalizeSliceOffset(mixed $value, string $label): int
|
`normalizeSliceOffset()` を実行する |
public
normalizeArrayLikeValue(mixed $value, string $surface): array
|
`normalizeArrayLikeValue()` を実行する |
public
normalizeMergeOperand(mixed $value): array
|
`normalizeMergeOperand()` を実行する |