EnumConstJoin
概要
定数を1つのファイルにまとめます。
PHP限定で使える機能です。
記入例
header:
base_type: MultiYamlAction
multi_yaml_action:
type: EnumConstJoin
output_path: Constants
name: EnumConstJoin
template: ConstPhp.php
multi_yaml_action:
- yaml: const/const_source.yaml
- yaml: enum/gender_type.yaml
詳細
yaml
- yaml: enum/gender_type.yaml
- 定義:必須
チェックする項目のあるYAMLを指定します。
※1つのファイルに定数をまとめることが目的のため、元となるファイルは出力しないことを推奨します。
記入例での const/const_source.yaml と enum/gender_type.yaml 内の header の base_type を NoOutput にすると出力されません。