You are here

public function MemberMetadata::accept in Plug 7

Overrides GenericMetadata::accept

Deprecated

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

File

lib/Symfony/validator/Symfony/Component/Validator/Mapping/MemberMetadata.php, line 83

Class

MemberMetadata
Stores all metadata needed for validating a class property.

Namespace

Symfony\Component\Validator\Mapping

Code

public function accept(ValidationVisitorInterface $visitor, $value, $group, $propertyPath, $propagatedGroup = null) {
  $visitor
    ->visit($this, $value, $group, $propertyPath);
  if ($this
    ->isCascaded()) {
    $visitor
      ->validate($value, $propagatedGroup ?: $group, $propertyPath, $this
      ->isCollectionCascaded(), $this
      ->isCollectionCascadedDeeply());
  }
}