public function __construct(Generator $singleElementGenerator) { $this->singleElementGenerator = $singleElementGenerator; }