1<?php
2class TestGeneratorMaker
3{
4    public function create($array = [])
5    {
6        foreach ($array as $key => $value) {
7            yield $key => $value;
8        }
9    }
10}
11
12