| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | 8 | public function __construct(iterable $results, EntityManagerInterface $em, int $batchSize = 100) |
|
| 20 | { |
||
| 21 | 8 | if (!\is_countable($results)) { |
|
| 22 | 1 | throw new \InvalidArgumentException('$results must be countable.'); |
|
| 23 | } |
||
| 24 | |||
| 25 | 7 | $this->batchProcessor = new ORMBatchProcessor($results, $em, $batchSize); |
|
| 26 | 7 | $this->countable = $results; |
|
| 27 | 7 | } |
|
| 28 | |||
| 39 |