src/ContainerValidator.php
public function addValidator(ValidatorInterface $validator, bool $interrupt = null): ContainerValidator
    {
        $this->validators[] = new InterruptValidator($validator, $interrupt);

        return $this;
    }
public function addValidator(ValidatorInterface $validator, bool $interrupt = null): ContainerValidator
    {
        $this->validators[] = new InterruptValidator($validator, $interrupt);

        return $this;
    }
Add $validator to container.

When $interrupt is true, validation will stop if $validator result is invalid. Default value is false.

@param ValidatorInterface $validator
@param bool|null          $interrupt
@return ContainerValidator