1 | <?php |
||
5 | class ResultSetAdapter implements \Foolz\SphinxQL\Drivers\ResultSetAdapterInterface |
||
6 | { |
||
7 | /** |
||
8 | * @var Connection|null |
||
9 | */ |
||
10 | protected $connection = null; |
||
11 | |||
12 | /** |
||
13 | * @var \mysqli_result|null |
||
14 | */ |
||
15 | protected $result = null; |
||
16 | |||
17 | /** |
||
18 | * @var bool |
||
19 | */ |
||
20 | protected $valid = true; |
||
21 | |||
22 | /** |
||
23 | * @param Connection $connection |
||
24 | * @param null|\mysqli_result $result |
||
25 | */ |
||
26 | public function __construct(Connection $connection, $result = null) |
||
31 | |||
32 | /** |
||
33 | * @return mixed |
||
34 | * @throws \Foolz\SphinxQL\Exception\ConnectionException |
||
35 | */ |
||
36 | public function getAffectedRows() |
||
40 | |||
41 | /** |
||
42 | * @return int |
||
43 | */ |
||
44 | public function getNumRows() |
||
48 | |||
49 | /** |
||
50 | * @return array |
||
51 | */ |
||
52 | public function getFields() |
||
56 | |||
57 | /** |
||
58 | * @return bool |
||
59 | */ |
||
60 | public function isDml() |
||
64 | |||
65 | /** |
||
66 | * @return mixed |
||
67 | */ |
||
68 | public function store() |
||
73 | |||
74 | /** |
||
75 | * @param int $num |
||
76 | */ |
||
77 | public function toRow($num) |
||
81 | |||
82 | public function freeResult() |
||
86 | |||
87 | public function rewind() |
||
92 | |||
93 | public function valid() |
||
97 | |||
98 | /** |
||
99 | * @param self::FETCH_ASSOC|self::FETCH_NUM $fetch_type |
||
|
|||
100 | * @return array|null |
||
101 | */ |
||
102 | public function fetch($fetch_type) |
||
116 | |||
117 | /** |
||
118 | * @param self::FETCH_ASSOC|self::FETCH_NUM $fetch_type |
||
119 | * @return array |
||
120 | */ |
||
121 | public function fetchAll($fetch_type) |
||
135 | } |
||
136 |
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.