NaifyViewExtension\Dialect\Smarty\SmartyForeachSpecParser クラス
SmartyForeachSpecParser
Smarty の {foreach ...} は from=... item=... と shorthand が混在する。
converter と direct IR builder が同じ contract を読むよう、spec 解析をここへ集約する。
プロパティ
| 名前 | 型 | 説明 |
|---|---|---|
private
$attributeReader
|
SmartyAttributeReader |
|
private
$textHelper
|
ExtensionConverterTextHelper |
メソッド
| メソッド | 説明 |
|---|---|
public
__construct(?SmartyAttributeReader $attributeReader, ?ExtensionConverterTextHelper $textHelper):
|
|
public
parse(string $source): array
|
|
private
normalizeName(string $value, string $fallback): string
|