nur-sery/nur_tests/mapper/base/impl/NumberProducer.php

11 lines
169 B
PHP

<?php
namespace nur\mapper\base\impl;
use nur\mapper\base\Producer;
class NumberProducer extends Producer {
function producer() {
yield from [1, 2, 3, 4];
}
}