Overview

Namespaces

  • Contrib
    • Bundle
      • CoverallsBundle
        • Console
        • Entity
      • CoverallsV1Bundle
        • Api
        • Collector
        • Command
        • Config
        • Entity
          • Git
    • Component
      • File
      • Log
      • System
        • Git
  • Guzzle
    • Batch
      • Exception
    • Cache
    • Common
      • Exception
    • Http
      • Curl
      • Exception
      • Message
      • QueryAggregator
    • Inflection
    • Iterator
    • Log
    • Parser
      • Cookie
      • Message
      • UriTemplate
      • Url
    • Plugin
      • Async
      • Backoff
      • Cache
      • Cookie
        • CookieJar
        • Exception
      • CurlAuth
      • ErrorResponse
        • Exception
      • History
      • Log
      • Md5
      • Mock
      • Oauth
    • Service
      • Builder
      • Command
        • Factory
        • LocationVisitor
          • Request
          • Response
      • Description
      • Exception
      • Resource
    • Stream
  • PHP
  • Psr
    • Log
  • Symfony
    • Component
      • Config
        • Definition
          • Builder
          • Exception
        • Exception
        • Loader
        • Resource
        • Util
      • Console
        • Command
        • Formatter
        • Helper
        • Input
        • Output
        • Tester
      • EventDispatcher
        • Debug
      • Finder
        • Adapter
        • Comparator
        • Exception
        • Expression
        • Iterator
        • Shell
      • Stopwatch
      • Yaml
        • Exception

Classes

  • Dumper
  • Escaper
  • Inline
  • Parser
  • Unescaper
  • Yaml
  • Overview
  • Namespace
  • Class
  • Tree
  • Todo

Class Dumper

Dumper dumps PHP variables to YAML strings.

Namespace: Symfony\Component\Yaml
Author: Fabien Potencier <fabien@symfony.com>
Located at yaml/Symfony/Component/Yaml/Dumper.php
Methods summary
public
# setIndentation( integer $num )

Sets the indentation.

Sets the indentation.

Parameters

$num
integer
$num The amount of spaces to use for indentation of nested nodes.
public string
# dump( mixed $input, integer $inline = 0, integer $indent = 0, Boolean $exceptionOnInvalidType = false, Boolean $objectSupport = false )

Dumps a PHP value to YAML.

Dumps a PHP value to YAML.

Parameters

$input
mixed
$input The PHP value
$inline
integer
$inline The level where you switch to inline YAML
$indent
integer
$indent The level of indentation (used internally)
$exceptionOnInvalidType
Boolean
$exceptionOnInvalidType true if an exception must be thrown on invalid types (a PHP resource or object), false otherwise
$objectSupport
Boolean
$objectSupport true if object support is enabled, false otherwise

Returns

string
The YAML representation of the PHP value
Properties summary
protected integer $indentation 4
#

The amount of spaces to use for indentation of nested nodes.

The amount of spaces to use for indentation of nested nodes.

php-coveralls API documentation generated by ApiGen 2.8.0