1 | <?php |
||
12 | class ResultSet implements Iterator, ArrayAccess, Countable, JsonSerializable |
||
13 | { |
||
14 | protected $queryBuilder; |
||
15 | protected $data; |
||
16 | protected $single = false; |
||
17 | protected $executed = false; |
||
18 | protected $tableName; |
||
19 | |||
20 | 10 | public function __construct($tableName, QueryBuilder $queryBuilder, $singleResultSet = false) |
|
28 | |||
29 | 6 | public function __call($name, $args) |
|
42 | |||
43 | 1 | public function getTableName() |
|
47 | |||
48 | 8 | public function getQueryBuilder() |
|
52 | |||
53 | protected function execute() |
||
60 | |||
61 | 1 | protected function createRow($data = []) |
|
65 | |||
66 | 1 | public function offsetGet($key) |
|
82 | |||
83 | public function offsetSet($key, $value) |
||
85 | |||
86 | public function offsetUnset($key) |
||
88 | |||
89 | public function offsetExists($key) |
||
93 | |||
94 | public function count() |
||
99 | |||
100 | public function rewind() |
||
105 | |||
106 | public function current() |
||
110 | |||
111 | public function key() |
||
116 | |||
117 | public function next() |
||
121 | |||
122 | public function valid() |
||
127 | |||
128 | public function toArray() |
||
133 | |||
134 | public function jsonSerialize() |
||
139 | |||
140 | 7 | public function __toString() |
|
144 | } |
||
145 |