public function GenericMetadata::hasConstraints in Plug 7
Returns whether this element has any constraints.
Return value
bool
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Mapping/ GenericMetadata.php, line 195
Class
- GenericMetadata
- A generic container of {@link Constraint} objects.
Namespace
Symfony\Component\Validator\MappingCode
public function hasConstraints() {
return count($this->constraints) > 0;
}