public function GenericMetadata::hasConstraints in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/validator/Mapping/GenericMetadata.php \Symfony\Component\Validator\Mapping\GenericMetadata::hasConstraints()
Returns whether this element has any constraints.
Return value
bool
File
- vendor/
symfony/ validator/ Mapping/ GenericMetadata.php, line 196
Class
- GenericMetadata
- A generic container of {@link Constraint} objects.
Namespace
Symfony\Component\Validator\MappingCode
public function hasConstraints() {
return count($this->constraints) > 0;
}