public function ConstraintViolationList::has in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/validator/ConstraintViolationList.php \Symfony\Component\Validator\ConstraintViolationList::has()
Returns whether the given offset exists.
Parameters
int $offset The violation offset.:
Return value
bool Whether the offset exists.
Overrides ConstraintViolationListInterface::has
1 call to ConstraintViolationList::has()
- ConstraintViolationList::offsetExists in vendor/
symfony/ validator/ ConstraintViolationList.php
File
- vendor/
symfony/ validator/ ConstraintViolationList.php, line 87
Class
- ConstraintViolationList
- Default implementation of {@ConstraintViolationListInterface}.
Namespace
Symfony\Component\ValidatorCode
public function has($offset) {
return isset($this->violations[$offset]);
}