Expression::create()

static Expression create(string $expr) Parameters string $expr Return Value Expression

Expression::append()

ValueInterface append(string $expr) Parameters string $expr Return Value ValueInterface

Expression

class Expression implements ValueInterface Constants TYPE_REGEX TYPE_GLOB Methods static Expression create(string $expr) __construct(string $expr) string __toString() string render() Renders string representation of expression. string renderPattern() Renders string representation of pattern. bool isCaseSensitive() int getType() ValueInterface prepend(string $expr) ValueInterface append(string $expr) bool isRegex() bool isG

Expression

class Expression extends Constraint 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. EXPRESSION_FAILED_ERROR Properties mixed $payload Domain-specific data attached to a constraint. from Constraint array $groups The groups that the constraint belongs to from Constraint $message $expressi

Expression

class Expression Represents an expression. Methods __construct(string $expression) Constructor. string __toString() Gets the expression. Details __construct(string $expression) Constructor. Parameters string $expression An expression string __toString() Gets the expression. Return Value string The expression

ExprBuilder::thenUnset()

ExprBuilder thenUnset() Sets a closure unsetting this key of the array at validation time. Return Value ExprBuilder Exceptions UnsetKeyException

ExprBuilder::thenInvalid()

ExprBuilder thenInvalid(string $message) Sets a closure marking the value as invalid at validation time. if you want to add the value of the node in your message just use a %s placeholder. Parameters string $message Return Value ExprBuilder Exceptions InvalidArgumentException

ExprBuilder::thenEmptyArray()

ExprBuilder thenEmptyArray() Sets a closure returning an empty array. Return Value ExprBuilder

ExprBuilder::then()

ExprBuilder then(Closure $closure) Sets the closure to run if the test pass. Parameters Closure $closure Return Value ExprBuilder

ExprBuilder::ifTrue()

ExprBuilder ifTrue(Closure $closure = null) Sets a closure to use as tests. The default one tests if the value is true. Parameters Closure $closure Return Value ExprBuilder