public function __construct(Generator $generator, $maxRetries = 10000) { $this->generator = $generator; $this->maxRetries = $maxRetries; }