1 | <?php |
||
13 | abstract class SimplePaginatedList extends LazyResourceList |
||
14 | { |
||
15 | use PaginatedList; |
||
16 | |||
17 | /* @var integer */ |
||
18 | protected $offset = 0; |
||
19 | |||
20 | /* @var integer */ |
||
21 | protected $limit = 10; |
||
22 | |||
23 | /* @var integer */ |
||
24 | protected $totalRecordCount = null; |
||
25 | |||
26 | protected function fetchBatch() |
||
50 | |||
51 | /** |
||
52 | * Check if we have the full representation of our data object. |
||
53 | * |
||
54 | * @param \stdClass $data |
||
55 | * @return boolean |
||
56 | */ |
||
57 | protected function isInitialized($data) |
||
61 | |||
62 | /** |
||
63 | * Total number of resources. |
||
64 | * @link http://php.net/manual/en/countable.count.php |
||
65 | * @return int |
||
66 | */ |
||
67 | public function count() |
||
75 | } |
||
76 |