public function ExecutionContextInterface::getObject in Plug 7
Returns the currently validated object.
If the validator is currently validating a class constraint, the object of that class is returned. If it is a validating a property or getter constraint, the object that the property/getter belongs to is returned.
In other cases, null is returned.
Return value
object|null The currently validated object or null.
1 method overrides ExecutionContextInterface::getObject()
- ExecutionContext::getObject in lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Context/ ExecutionContext.php - Returns the currently validated object.
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Context/ ExecutionContextInterface.php, line 115
Class
- ExecutionContextInterface
- The context of a validation run.
Namespace
Symfony\Component\Validator\ContextCode
public function getObject();