| @@ 19-29 (lines=11) @@ | ||
| 16 | /** |
|
| 17 | * @return array|mixed|null |
|
| 18 | */ |
|
| 19 | public function read() |
|
| 20 | { |
|
| 21 | $entities = []; |
|
| 22 | ||
| 23 | while ($entity = parent::read()) { |
|
| 24 | $entities[] = $entity; |
|
| 25 | $this->stepExecution->incrementReadCount(); |
|
| 26 | } |
|
| 27 | ||
| 28 | return empty($entities) ? null : $entities; |
|
| 29 | } |
|
| 30 | ||
| 31 | /** |
|
| 32 | * @return array |
|
| @@ 38-49 (lines=12) @@ | ||
| 35 | /** |
|
| 36 | * {@inheritdoc} |
|
| 37 | */ |
|
| 38 | public function read() |
|
| 39 | { |
|
| 40 | $entities = []; |
|
| 41 | ||
| 42 | while ($entity = parent::read()) { |
|
| 43 | $this->stepExecution->incrementReadCount(); |
|
| 44 | ||
| 45 | $entities[] = $entity; |
|
| 46 | } |
|
| 47 | ||
| 48 | return empty($entities) ? null : $entities; |
|
| 49 | } |
|
| 50 | ||
| 51 | /** |
|
| 52 | * {@inheritdoc} |
|