You are here

public function GenericMetadata::accept in Plug 7

Exists for compatibility with the deprecated {@link Symfony\Component\Validator\MetadataInterface}.

Should not be used.

Throws

BadMethodCallException

Overrides MetadataInterface::accept

Deprecated

Implemented for backwards compatibility with Symfony < 2.5. Will be removed in Symfony 3.0.

2 methods override GenericMetadata::accept()
ClassMetadata::accept in lib/Symfony/validator/Symfony/Component/Validator/Mapping/ClassMetadata.php
MemberMetadata::accept in lib/Symfony/validator/Symfony/Component/Validator/Mapping/MemberMetadata.php

File

lib/Symfony/validator/Symfony/Component/Validator/Mapping/GenericMetadata.php, line 239

Class

GenericMetadata
A generic container of {@link Constraint} objects.

Namespace

Symfony\Component\Validator\Mapping

Code

public function accept(ValidationVisitorInterface $visitor, $value, $group, $propertyPath) {
  throw new BadMethodCallException('Not supported.');
}