| 1 | <?php |
||
| 7 | final class DataLoaderOptions |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var bool |
||
| 11 | */ |
||
| 12 | private $shouldBatch; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var null|int |
||
| 16 | */ |
||
| 17 | private $maxBatchSize; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var bool |
||
| 21 | */ |
||
| 22 | private $shouldCache; |
||
| 23 | |||
| 24 | 34 | public function __construct( |
|
| 34 | |||
| 35 | 30 | public function shouldBatch(): bool |
|
| 39 | |||
| 40 | 29 | public function getMaxBatchSize(): ?int |
|
| 44 | |||
| 45 | 31 | public function shouldCache(): bool |
|
| 49 | |||
| 50 | 34 | private function validateMaxBatchSizeOption(?int $maxBatchSize) |
|
| 56 | } |
||
| 57 |