You are here

public function ExecutionContext::setNode in Plug 7

Sets the currently validated value.

@internal Used by the validator engine. Should not be called by user code.

Parameters

mixed $value The validated value:

object|null $object The currently validated object:

MetadataInterface|null $metadata The validation metadata:

string $propertyPath The property path to the current value:

Overrides ExecutionContextInterface::setNode

File

lib/Symfony/validator/Symfony/Component/Validator/Context/ExecutionContext.php, line 157

Class

ExecutionContext
The context used and created by {@link ExecutionContextFactory}.

Namespace

Symfony\Component\Validator\Context

Code

public function setNode($value, $object, MetadataInterface $metadata = null, $propertyPath) {
  $this->value = $value;
  $this->object = $object;
  $this->metadata = $metadata;
  $this->propertyPath = (string) $propertyPath;
}