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::getTargets()

string|array getTargets() Returns whether the constraint can be put onto classes, properties or both. This method should return one or more of the constants Constraint::CLASSCONSTRAINT and Constraint::PROPERTYCONSTRAINT. Return Value string|array One or more constant values

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

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

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()

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

ConstantNode::evaluate()

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

ConsoleTerminateEvent::getExitCode()

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

ConsoleTerminateEvent::setExitCode()

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