Symfony\Component\Config\Definition\Builder\ExprBuilder
This class builds an if expression.
- Author: Johannes M. Schmitt <schmittjoh@gmail.com>
Synopsis
class ExprBuilder
{
- // methods
- public void __construct()
- public ExprBuilder always()
- public ExprBuilder ifTrue()
- public ExprBuilder ifString()
- public ExprBuilder ifNull()
- public ExprBuilder ifArray()
- public ExprBuilder ifInArray()
- public ExprBuilder ifNotInArray()
- public ExprBuilder then()
- public ExprBuilder thenEmptyArray()
- public ExprBuilder thenInvalid()
- public ExprBuilder thenUnset()
- public NodeDefinition end()
- public static array buildExpressions()
Members
protected
- $node
public
- $ifPart
- $thenPart
Methods
public
- __construct() — Constructor
- always() — Marks the expression as being always used.
- buildExpressions() — Builds the expressions.
- end() — Returns the related node
- ifArray() — Tests if the value is an array.
- ifInArray() — Tests if the value is in an array.
- ifNotInArray() — Tests if the value is not in an array.
- ifNull() — Tests if the value is null.
- ifString() — Tests if the value is a string.
- ifTrue() — Sets a closure to use as tests.
- then() — Sets the closure to run if the test pass.
- thenEmptyArray() — Sets a closure returning an empty array.
- thenInvalid() — Sets a closure marking the value as invalid at validation time.
- thenUnset() — Sets a closure unsetting this key of the array at validation time.