/**
  * {@inheritdoc}
  */
 public function getPropertyName()
 {
     if ($this->metadata instanceof PropertyMetadataInterface) {
         return $this->metadata->getPropertyName();
     }
     return null;
 }
Exemple #2
0
    /**
     * {@inheritdoc}
     */
    public function visit(MetadataInterface $metadata, $value, $group, $propertyPath)
    {
        $context = new ExecutionContext(
            $this,
            $metadata,
            $value,
            $group,
            $propertyPath
        );

        $context->validateValue($value, $metadata->findConstraints($group));
    }