@@ 39-41 (lines=3) @@ | ||
36 | /* |
|
37 | * Means that you should get all |
|
38 | */ |
|
39 | if ($offset === 0 && $limit === 0 && $nowCount === 0) { |
|
40 | return new OffsetLogicResult(0, 0); |
|
41 | } |
|
42 | ||
43 | if ($offset === 0 && $limit > 0 && $nowCount === 0) { |
|
44 | return new OffsetLogicResult(1, $limit); |
|
@@ 43-45 (lines=3) @@ | ||
40 | return new OffsetLogicResult(0, 0); |
|
41 | } |
|
42 | ||
43 | if ($offset === 0 && $limit > 0 && $nowCount === 0) { |
|
44 | return new OffsetLogicResult(1, $limit); |
|
45 | } |
|
46 | ||
47 | if ($offset > 0 && $limit === 0) { |
|
48 | return new OffsetLogicResult(2, $nowCount + $offset); |