ExprBuilder::ifString()

ExprBuilder ifString() Tests if the value is a string. Return Value ExprBuilder

ExprBuilder::ifNull()

ExprBuilder ifNull() Tests if the value is null. Return Value ExprBuilder

ExprBuilder::ifNotInArray()

ExprBuilder ifNotInArray(array $array) Tests if the value is not in an array. Parameters array $array Return Value ExprBuilder

ExprBuilder::ifInArray()

ExprBuilder ifInArray(array $array) Tests if the value is in an array. Parameters array $array Return Value ExprBuilder

ExprBuilder::ifArray()

ExprBuilder ifArray() Tests if the value is an array. Return Value ExprBuilder

ExprBuilder::end()

NodeDefinition end() Returns the related node. Return Value NodeDefinition Exceptions RuntimeException

ExprBuilder::buildExpressions()

static array buildExpressions(array $expressions) Builds the expressions. Parameters array $expressions An array of ExprBuilder instances to build Return Value array

ExprBuilder::always()

ExprBuilder always(Closure $then = null) Marks the expression as being always used. Parameters Closure $then Return Value ExprBuilder

ExprBuilder

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.

Existence

class Existence extends Composite Constants DEFAULT_GROUP The name of the group given to all constraints with no explicit group CLASS_CONSTRAINT Marks a constraint that can be put onto classes PROPERTY_CONSTRAINT Marks a constraint that can be put onto properties Properties mixed $payload Domain-specific data attached to a constraint from Constraint array $groups The groups that the constraint belongs to from Constraint $constraints Methods static string getErrorName(i