public function __construct(array $generators) { $this->generators = ensureAreAllGenerators($generators); $this->numberOfGenerators = count($generators); }