name: TextBundleWriter
class_comment: '# * Writes .txt resource bundles.

  # *

  # * The resulting files can be converted to binary .res files using a

  # * {@link \Symfony\Component\Intl\ResourceBundle\Compiler\BundleCompilerInterface}

  # * implementation.

  # *

  # * @author Bernhard Schussek <bschussek@gmail.com>

  # *

  # * @see http://source.icu-project.org/repos/icu/icuhtml/trunk/design/bnf_rb.txt

  # *

  # * @internal'
dependencies: []
properties: []
methods:
- name: writeResourceBundle
  visibility: private
  parameters:
  - name: file
  - name: bundleName
  - name: value
  - name: fallback
  comment: "# * Writes .txt resource bundles.\n# *\n# * The resulting files can be\
    \ converted to binary .res files using a\n# * {@link \\Symfony\\Component\\Intl\\\
    ResourceBundle\\Compiler\\BundleCompilerInterface}\n# * implementation.\n# *\n\
    # * @author Bernhard Schussek <bschussek@gmail.com>\n# *\n# * @see http://source.icu-project.org/repos/icu/icuhtml/trunk/design/bnf_rb.txt\n\
    # *\n# * @internal\n# */\n# class TextBundleWriter implements BundleWriterInterface\n\
    # {\n# public function write(string $path, string $locale, mixed $data, bool $fallback\
    \ = true): void\n# {\n# $file = fopen($path.'/'.$locale.'.txt', 'w');\n# \n# $this->writeResourceBundle($file,\
    \ $locale, $data, $fallback);\n# \n# fclose($file);\n# }\n# \n# /**\n# * Writes\
    \ a \"resourceBundle\" node.\n# *\n# * @param resource $file  The file handle\
    \ to write to\n# * @param mixed    $value The value of the node\n# *\n# * @see\
    \ http://source.icu-project.org/repos/icu/icuhtml/trunk/design/bnf_rb.txt"
- name: writeResource
  visibility: private
  parameters:
  - name: file
  - name: value
  - name: indentation
  - name: requireBraces
    default: 'true'
  comment: '# * Writes a "resource" node.

    # *

    # * @param resource $file  The file handle to write to

    # * @param mixed    $value The value of the node

    # *

    # * @see http://source.icu-project.org/repos/icu/icuhtml/trunk/design/bnf_rb.txt'
- name: writeInteger
  visibility: private
  parameters:
  - name: file
  - name: value
  comment: '# * Writes an "integer" node.

    # *

    # * @param resource $file The file handle to write to

    # *

    # * @see http://source.icu-project.org/repos/icu/icuhtml/trunk/design/bnf_rb.txt'
- name: writeIntVector
  visibility: private
  parameters:
  - name: file
  - name: value
  - name: indentation
  comment: '# * Writes an "intvector" node.

    # *

    # * @param resource $file The file handle to write to

    # *

    # * @see http://source.icu-project.org/repos/icu/icuhtml/trunk/design/bnf_rb.txt'
- name: writeString
  visibility: private
  parameters:
  - name: file
  - name: value
  - name: requireBraces
    default: 'true'
  comment: '# * Writes a "string" node.

    # *

    # * @param resource $file The file handle to write to

    # *

    # * @see http://source.icu-project.org/repos/icu/icuhtml/trunk/design/bnf_rb.txt'
- name: writeArray
  visibility: private
  parameters:
  - name: file
  - name: value
  - name: indentation
  comment: '# * Writes an "array" node.

    # *

    # * @param resource $file The file handle to write to

    # *

    # * @see http://source.icu-project.org/repos/icu/icuhtml/trunk/design/bnf_rb.txt'
- name: writeTable
  visibility: private
  parameters:
  - name: file
  - name: value
  - name: indentation
  - name: fallback
    default: 'true'
  comment: '# * Writes a "table" node.

    # *

    # * @param resource $file The file handle to write to'
traits: []
interfaces:
- BundleWriterInterface