You are here

public function GenericMetadata::findConstraints in Zircon Profile 8

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

Aware of the global group (* group).

Overrides MetadataInterface::findConstraints

File

vendor/symfony/validator/Mapping/GenericMetadata.php, line 206

Class

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

Namespace

Symfony\Component\Validator\Mapping

Code

public function findConstraints($group) {
  return isset($this->constraintsByGroup[$group]) ? $this->constraintsByGroup[$group] : array();
}