class ExprBuilder
This class builds an if expression.
Properties
$ifPart $thenPart
Methods
__construct(NodeDefinition $node) Constructor.
ExprBuilder always(Closure $then = null) Marks the expression as being always used.
ExprBuilder ifTrue(Closure $closure = null) Sets a closure to use as tests.
ExprBuilder ifString() Tests if the value is a string.
ExprBuilder ifNull() Tests if the value is null.
ExprBuilder ifArray() Tests if the value is an array.