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

  • ArrayNode
  • BaseNode
  • BooleanNode
  • EnumNode
  • FloatNode
  • IntegerNode
  • NumericNode
  • Processor
  • PrototypedArrayNode
  • ReferenceDumper
  • ScalarNode
  • VariableNode

Interfaces

  • ConfigurationInterface
  • NodeInterface
  • PrototypeNodeInterface
  • Overview
  • Namespace
  • Class
  • Tree
  • Todo

Class VariableNode

This node represents a value of variable type in the config tree.

This node is intended for values of arbitrary type. Any PHP type is accepted as a value.

Symfony\Component\Config\Definition\BaseNode implements Symfony\Component\Config\Definition\NodeInterface
Extended by Symfony\Component\Config\Definition\VariableNode implements Symfony\Component\Config\Definition\PrototypeNodeInterface

Direct known subclasses

Symfony\Component\Config\Definition\ScalarNode

Indirect known subclasses

Symfony\Component\Config\Definition\BooleanNode, Symfony\Component\Config\Definition\EnumNode, Symfony\Component\Config\Definition\FloatNode, Symfony\Component\Config\Definition\IntegerNode, Symfony\Component\Config\Definition\NumericNode
Namespace: Symfony\Component\Config\Definition
Author: Jeremy Mikola <jmikola@gmail.com>
Located at config/Symfony/Component/Config/Definition/VariableNode.php
Methods summary
public
# setDefaultValue( mixed $value )
public Boolean
# hasDefaultValue( )

Returns true when the node has a default value.

Returns true when the node has a default value.

Returns

Boolean
If the node has a default value

Implementation of

Symfony\Component\Config\Definition\NodeInterface::hasDefaultValue()
public mixed
# getDefaultValue( )

Returns the default value of the node.

Returns the default value of the node.

Returns

mixed
The default value

Throws

RuntimeException
if the node has no default value

Implementation of

Symfony\Component\Config\Definition\NodeInterface::getDefaultValue()
public
# setAllowEmptyValue( Boolean $boolean )

Sets if this node is allowed to have an empty value.

Sets if this node is allowed to have an empty value.

Parameters

$boolean
Boolean
$boolean True if this entity will accept empty values.
public
# setName( string $name )

Sets the name of the node.

Sets the name of the node.

Parameters

$name
string
$name The name of the node

Implementation of

Symfony\Component\Config\Definition\PrototypeNodeInterface::setName()
protected
# validateType( mixed $value )

Validates the type of a Node.

Validates the type of a Node.

Parameters

$value
mixed
$value The value to validate

Throws

InvalidTypeException
when the value is invalid
protected mixed
# finalizeValue( mixed $value )

Finalizes a value.

Finalizes a value.

Parameters

$value
mixed
$value The value to finalize

Returns

mixed
The finalized value
protected mixed
# normalizeValue( mixed $value )

Normalizes the value.

Normalizes the value.

Parameters

$value
mixed
$value The value to normalize.

Returns

mixed
The normalized value
protected mixed
# mergeValues( mixed $leftSide, mixed $rightSide )

Merges two values together.

Merges two values together.

Parameters

$leftSide
mixed
$leftSide
$rightSide
mixed
$rightSide

Returns

mixed
The merged value
Methods inherited from Symfony\Component\Config\Definition\BaseNode
__construct(), addEquivalentValue(), finalize(), getAttribute(), getAttributes(), getExample(), getInfo(), getName(), getPath(), hasAttribute(), isRequired(), merge(), normalize(), preNormalize(), removeAttribute(), setAllowOverwrite(), setAttribute(), setAttributes(), setExample(), setFinalValidationClosures(), setInfo(), setNormalizationClosures(), setRequired()
Properties summary
protected boolean $defaultValueSet false
#
protected mixed $defaultValue
#
protected boolean $allowEmptyValue true
#
Properties inherited from Symfony\Component\Config\Definition\BaseNode
$allowOverwrite, $attributes, $equivalentValues, $finalValidationClosures, $name, $normalizationClosures, $parent, $required
php-coveralls API documentation generated by ApiGen 2.8.0