Symfony\Component\Validator\ConstraintViolationList::offsetSet PHP Method

offsetSet() public method

See also: ArrayAccess
public offsetSet ( $offset, $violation )
    public function offsetSet($offset, $violation)
    {
        if (null === $offset) {
            $this->add($violation);
        } else {
            $this->set($offset, $violation);
        }
    }