Total Complexity | 4 |
Total Lines | 41 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | abstract class ExtractorLimitAbstract extends ExtractorAbstract implements ExtractorLimitInterface |
||
16 | { |
||
17 | /** |
||
18 | * Total number of records to fetch |
||
19 | * |
||
20 | * @var int |
||
21 | */ |
||
22 | protected $limit; |
||
23 | |||
24 | /** |
||
25 | * Set extract limit |
||
26 | * |
||
27 | * @param int|null $limit |
||
28 | * |
||
29 | * @return static |
||
30 | */ |
||
31 | public function setLimit(?int $limit): ExtractorLimitInterface |
||
36 | } |
||
37 | |||
38 | /** |
||
39 | * Get current limit |
||
40 | * |
||
41 | * @return int|null |
||
42 | */ |
||
43 | public function getLimit(): ? int |
||
46 | } |
||
47 | |||
48 | /** |
||
49 | * Tells if limit is reached already |
||
50 | * |
||
51 | * @return bool true if limit is reached |
||
52 | */ |
||
53 | public function isLimitReached(): bool |
||
58 |