Creates a new execution context.
GlobalExecutionContextInterface $globalContext The global context storing node-independent state.:
TranslatorInterface $translator The translator for translating violation messages.:
null|string $translationDomain The domain of the validation messages.:
MetadataInterface $metadata The metadata of the validated node.:
mixed $value The value of the validated node.:
string $group The current validation group.:
string $propertyPath The property path to the current node.:
public function __construct(GlobalExecutionContextInterface $globalContext, TranslatorInterface $translator, $translationDomain = null, MetadataInterface $metadata = null, $value = null, $group = null, $propertyPath = '') {
if (null === $group) {
$group = Constraint::DEFAULT_GROUP;
}
$this->globalContext = $globalContext;
$this->translator = $translator;
$this->translationDomain = $translationDomain;
$this->metadata = $metadata;
$this->value = $value;
$this->propertyPath = $propertyPath;
$this->group = $group;
}