You are here

public function GenericMetadata::getConstraints 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::getConstraints()

Returns all constraints of this element.

Return value

Constraint[] A list of Constraint instances

Overrides MetadataInterface::getConstraints

File

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

Class

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

Namespace

Symfony\Component\Validator\Mapping

Code

public function getConstraints() {
  return $this->constraints;
}