EnumConstJoin
Overview
Consolidate constants into a single file.
This feature is available only in PHP.
Example
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
Details
yaml
- yaml: enum/gender_type.yaml
- Definition: Required
Specify the YAML that contains the items to check.
Because the purpose is to consolidate constants into a single file, it is recommended not to output the source files.
In the example, set header.base_type to NoOutput in both const/const_source.yaml and enum/gender_type.yaml so they are not output.