You are here

public function ExecutionContext::getClassName in Plug 7

Same name in this branch
  1. 7 lib/Symfony/validator/Symfony/Component/Validator/ExecutionContext.php \Symfony\Component\Validator\ExecutionContext::getClassName()
  2. 7 lib/Symfony/validator/Symfony/Component/Validator/Context/ExecutionContext.php \Symfony\Component\Validator\Context\ExecutionContext::getClassName()

Returns the class name of the current node.

If the metadata of the current node does not implement {@link ClassBasedInterface} or if no metadata is available for the current node, this method returns null.

Return value

string|null The class name or null, if no class name could be found.

Overrides ExecutionContextInterface::getClassName

File

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

Class

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

Namespace

Symfony\Component\Validator\Context

Code

public function getClassName() {
  return $this->metadata instanceof ClassBasedInterface ? $this->metadata
    ->getClassName() : null;
}