1 | <?php |
||
20 | abstract class Builder implements BuilderInterface |
||
21 | { |
||
22 | /** |
||
23 | * @var ProcessorInterface |
||
24 | */ |
||
25 | protected $processor; |
||
26 | |||
27 | /** |
||
28 | * @var Query |
||
29 | */ |
||
30 | protected $query; |
||
31 | |||
32 | /** |
||
33 | * Builder constructor. |
||
34 | * @param Query $query |
||
35 | * @param ProcessorInterface $processor |
||
36 | */ |
||
37 | 30 | public function __construct(Query $query, ProcessorInterface $processor) |
|
42 | |||
43 | /** |
||
44 | * @param string $entity |
||
45 | * @param Query $query |
||
46 | * @return iterable |
||
47 | */ |
||
48 | protected function execute(string $entity, Query $query): iterable |
||
52 | |||
53 | /** |
||
54 | * @return \Generator |
||
55 | */ |
||
56 | protected function nothing(): \Generator |
||
62 | } |
||
63 |