-
-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathDataReaderInterface.php
More file actions
34 lines (30 loc) · 809 Bytes
/
DataReaderInterface.php
File metadata and controls
34 lines (30 loc) · 809 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
declare(strict_types=1);
namespace Yiisoft\Data\Reader;
use IteratorAggregate;
/**
* Data reader is a data source that can do the following with data items:
*
* - Read
* - Skip a number of items from the beginning
* - Count
* - Sort
* - Filter
* - Iterate with foreach
*
* @template TKey as array-key
* @template TValue as array|object
*
* @extends LimitableDataInterface<TKey, TValue>
* @extends OffsetableDataInterface<TKey, TValue>
* @extends SortableDataInterface<TKey, TValue>
* @extends FilterableDataInterface<TKey, TValue>
* @extends IteratorAggregate<TKey, TValue>
*/
interface DataReaderInterface extends
LimitableDataInterface,
OffsetableDataInterface,
CountableDataInterface,
SortableDataInterface,
FilterableDataInterface,
IteratorAggregate {}