예제 #1
0
 /**
  * {@inheritdoc}
  */
 public function getPropertyName()
 {
     if ($this->metadata instanceof PropertyMetadataInterface) {
         return $this->metadata->getPropertyName();
     }
     return null;
 }
예제 #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));
    }