| 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 | public function __construct( |
||
| 34 | |||
| 35 | public function shouldBatch(): bool |
||
| 39 | |||
| 40 | public function getMaxBatchSize(): ?int |
||
| 44 | |||
| 45 | public function shouldCache(): bool |
||
| 49 | |||
| 50 | private function validateMaxBatchSizeOption(?int $maxBatchSize) |
||
| 56 | } |
||
| 57 |