Batchable
- Type
- Interface
- Namespace
- craft\base
- Extends
- Countable (opens new window)
- Implemented by
- craft\db\QueryBatcher
- Since
- 3.4.0
Batchable defines the common interface to be implemented by classes that provide items which can be counted and accessed in slices.
View source (opens new window)
# Public Methods
Method | Description |
---|---|
getSlice() | Returns a slice of the items |
# getSlice()
Returns a slice of the items
View source (opens new window)
Arguments
$offset
(integer (opens new window))$limit
(integer (opens new window))
Returns
iterable