| Conditions | 3 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | public function execute(ProcessState $state) |
||
| 22 | { |
||
| 23 | $this->data[] = $state->getData(); |
||
| 24 | |||
| 25 | if (count($this->data) >= $state->getOptions()['batch_count'] || $state->getLoop()['last'] ?? false) { |
||
| 26 | $state->setData($this->data); |
||
| 27 | $this->data = []; |
||
| 28 | |||
| 29 | return; |
||
| 30 | } |
||
| 31 | |||
| 32 | $state->markIgnore(); |
||
| 33 | } |
||
| 35 |