public function withAddedInterceptor(string $name, array $functions): self
    {
        if (!isset($this->interceptors[$name])) {
            $this->interceptors[$name] = [];
        }
        $this->interceptors[$name] = array_merge($this->interceptors[$name], $functions);

        return $this;
    }