private function createGeneratorWithCount($count) { for ($i = 0; $i < $count; ++$i) { (yield $i); } }