You are here

public function MemberMetadata::accept in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/validator/Mapping/MemberMetadata.php \Symfony\Component\Validator\Mapping\MemberMetadata::accept()

Overrides GenericMetadata::accept

Deprecated

since version 2.5, to be removed in 3.0.

File

vendor/symfony/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) {
  @trigger_error('The ' . __METHOD__ . ' method is deprecated since version 2.5 and will be removed in 3.0.', E_USER_DEPRECATED);
  $visitor
    ->visit($this, $value, $group, $propertyPath);
  if ($this
    ->isCascaded()) {
    $visitor
      ->validate($value, $propagatedGroup ?: $group, $propertyPath, $this
      ->isCollectionCascaded(), $this
      ->isCollectionCascadedDeeply());
  }
}