You are here

public function ConstraintViolationList::has in Plug 7

Returns whether the given offset exists.

@api

Parameters

int $offset The violation offset.:

Return value

bool Whether the offset exists.

Overrides ConstraintViolationListInterface::has

1 call to ConstraintViolationList::has()
ConstraintViolationList::offsetExists in lib/Symfony/validator/Symfony/Component/Validator/ConstraintViolationList.php

File

lib/Symfony/validator/Symfony/Component/Validator/ConstraintViolationList.php, line 87

Class

ConstraintViolationList
Default implementation of {@ConstraintViolationListInterface}.

Namespace

Symfony\Component\Validator

Code

public function has($offset) {
  return isset($this->violations[$offset]);
}