Constraint::getRequiredOptions()

array getRequiredOptions() Returns the name of the required options. Override this method if you want to define required options. Return Value array See also __construct()

Constraint::getErrorName()

static string getErrorName(string $errorCode) Returns the name of the given error code. Parameters string $errorCode The error code Return Value string The name of the error code Exceptions InvalidArgumentException If the error code does not exist

Constraint::getDefaultOption()

string getDefaultOption() Returns the name of the default option. Override this method to define a default option. Return Value string See also __construct()

Constraint::addImplicitGroupName()

addImplicitGroupName(string $group) Adds the given group if this constraint is in the Default group. Parameters string $group

Constraint

class Constraint Contains the properties of a constraint definition. A constraint can be defined on a class, a property or a getter method. The Constraint class encapsulates all the configuration required for validating this class, property or getter result successfully. Constraint instances are immutable and serializable. 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. PRO

ConstantNode::evaluate()

evaluate($functions, $values) Parameters $functions $values

ConstantNode::compile()

compile(Compiler $compiler) Parameters Compiler $compiler

ConstantNode

class ConstantNode extends Node Properties $nodes from Node $attributes from Node Methods __construct($value) Constructor. __toString() from Node compile(Compiler $compiler) evaluate($functions, $values) Details __construct($value) Constructor. Parameters $value __toString() compile(Compiler $compiler) Parameters Compiler $compiler

ConsoleTerminateEvent::setExitCode()

setExitCode(int $exitCode) Sets the exit code. Parameters int $exitCode The command exit code

ConsoleTerminateEvent::getExitCode()

int getExitCode() Gets the exit code. Return Value int The command exit code