You are here

public function MetadataInterface::accept in Plug 7

Implementation of the Visitor design pattern.

Calls {@link ValidationVisitorInterface::visit} and then forwards the <tt>accept()</tt>-call to all property metadata instances.

Parameters

ValidationVisitorInterface $visitor The visitor implementing the validation logic:

mixed $value The value to validate:

string|string[] $group The validation group to validate in:

string $propertyPath The current property path in the validation graph:

Deprecated

Deprecated since version 2.5, to be removed in Symfony 3.0.

1 method overrides MetadataInterface::accept()
GenericMetadata::accept in lib/Symfony/validator/Symfony/Component/Validator/Mapping/GenericMetadata.php
Exists for compatibility with the deprecated {@link Symfony\Component\Validator\MetadataInterface}.

File

lib/Symfony/validator/Symfony/Component/Validator/MetadataInterface.php, line 63

Class

MetadataInterface
A container for validation metadata.

Namespace

Symfony\Component\Validator

Code

public function accept(ValidationVisitorInterface $visitor, $value, $group, $propertyPath);