src/Support/ExceptionGenerators/ExceptionGeneratorBuilder.php
public function chain(ExceptionGenerator $generator)
    {
        if ( ! isset($this->nextLink)) {
            return $this->initChain($generator);
        }

        $this->nextLink->succeedWith($generator);

        $this->nextLink = $generator;

        return $this;
    }
public function chain(ExceptionGenerator $generator)
    {
        if ( ! isset($this->nextLink)) {
            return $this->initChain($generator);
        }

        $this->nextLink->succeedWith($generator);

        $this->nextLink = $generator;

        return $this;
    }
@param ExceptionGenerator $generator

@return static