| 1 | <?php |
||
| 5 | class Resultset implements ResultInterface |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * |
||
| 9 | * @var integer |
||
| 10 | */ |
||
| 11 | protected $position = 0; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * |
||
| 15 | * @var integer |
||
| 16 | */ |
||
| 17 | protected $count = 0; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * |
||
| 21 | * @var array |
||
| 22 | */ |
||
| 23 | protected $storage=[]; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * |
||
| 27 | |||
| 28 | */ |
||
| 29 | 13 | public function __construct() |
|
| 35 | |||
| 36 | /** |
||
| 37 | * {@inheritdoc} |
||
| 38 | */ |
||
| 39 | 1 | public function current() |
|
| 43 | |||
| 44 | /** |
||
| 45 | * {@inheritdoc} |
||
| 46 | * @return int position |
||
| 47 | */ |
||
| 48 | public function key() |
||
| 52 | |||
| 53 | /** |
||
| 54 | * {@inheritdoc} |
||
| 55 | */ |
||
| 56 | 1 | public function next() |
|
| 60 | |||
| 61 | /** |
||
| 62 | * {@inheritdoc} |
||
| 63 | */ |
||
| 64 | 1 | public function rewind() |
|
| 68 | |||
| 69 | /** |
||
| 70 | * {@inheritdoc} |
||
| 71 | */ |
||
| 72 | 1 | public function valid() |
|
| 76 | |||
| 77 | /** |
||
| 78 | * {@inheritdoc} |
||
| 79 | */ |
||
| 80 | 5 | public function count() |
|
| 84 | |||
| 85 | /** |
||
| 86 | * |
||
| 87 | * {@inheritdoc} |
||
| 88 | */ |
||
| 89 | 8 | public function append(array $row) |
|
| 94 | |||
| 95 | |||
| 96 | /** |
||
| 97 | * |
||
| 98 | * {@inheritdoc} |
||
| 99 | */ |
||
| 100 | public function offsetExists($position) |
||
| 104 | |||
| 105 | /** |
||
| 106 | * |
||
| 107 | * {@inheritdoc} |
||
| 108 | */ |
||
| 109 | 8 | public function offsetGet($position) |
|
| 113 | |||
| 114 | /** |
||
| 115 | * |
||
| 116 | * {@inheritdoc} |
||
| 117 | */ |
||
| 118 | public function offsetSet($position, $row) |
||
| 122 | |||
| 123 | /** |
||
| 124 | * |
||
| 125 | * {@inheritdoc} |
||
| 126 | */ |
||
| 127 | public function offsetUnset($position) |
||
| 131 | |||
| 132 | /** |
||
| 133 | * |
||
| 134 | * @return array |
||
| 135 | */ |
||
| 136 | 1 | public function getArray() |
|
| 140 | } |
||
| 141 |