WienerWiener
  • Introduction
  • Comparison
  • Pricing
  • FAQ
  • Use Cases
  • License
  • Unity Asset vs Standalone
  • Obfuscation & Tamper Detection
  • Mismatch Detection & Debug
  • Localization
  • Versioning
  • Google Sheets Input
  • Excel
  • YAML
  • Settings
  • Data Format
  • Convert
  • ValueOnly Format
  • Startup
  • Samples
  • Converter
  • YAML Editor
  • Setting Editor
  • 日本語
  • English
  • Introduction
  • Comparison
  • Pricing
  • FAQ
  • Use Cases
  • License
  • Unity Asset vs Standalone
  • Obfuscation & Tamper Detection
  • Mismatch Detection & Debug
  • Localization
  • Versioning
  • Google Sheets Input
  • Excel
  • YAML
  • Settings
  • Data Format
  • Convert
  • ValueOnly Format
  • Startup
  • Samples
  • Converter
  • YAML Editor
  • Setting Editor
  • 日本語
  • English
  • YAML

    • Overview
    • Definition List
    • Header Definition
    • Fields Definition
    • MultiYamlAction Definition
    • ValidateKeyExistsYamlConditions
    • ValidateKeyExistsYaml
    • ValidateUnique
    • EnumConstJoin

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.

Last Updated:: 6/12/26, 2:44 AM
Contributors: artisan-sawasaka
Prev
ValidateUnique