1 | <?php |
||
8 | class ResultSet extends ResultSetBase |
||
9 | { |
||
10 | /** |
||
11 | * @var Connection |
||
12 | */ |
||
13 | protected $connection; |
||
14 | |||
15 | /** |
||
16 | * @var \mysqli_result |
||
17 | */ |
||
18 | protected $result; |
||
19 | |||
20 | /** |
||
21 | * @param ResultSetAdapter $adapter |
||
22 | * @param Connection $connection |
||
23 | * @param null|\mysqli_result $result |
||
24 | */ |
||
25 | public function __construct(ResultSetAdapter $adapter, Connection $connection, $result = null) |
||
32 | |||
33 | /** |
||
34 | * @param Connection $connection |
||
35 | * @param null|\mysqli_result $result |
||
36 | * @return ResultSet |
||
37 | */ |
||
38 | public static function make(Connection $connection, $result = null) |
||
43 | |||
44 | /** |
||
45 | * Get the result object returned by PHP's MySQLi |
||
46 | * |
||
47 | * @return \mysqli_result |
||
48 | * |
||
49 | * @codeCoverageIgnore |
||
50 | */ |
||
51 | public function getResultObject() |
||
55 | |||
56 | /** |
||
57 | * Get the MySQLi connection wrapper object |
||
58 | * |
||
59 | * @return Connection |
||
60 | * |
||
61 | * @codeCoverageIgnore |
||
62 | */ |
||
63 | public function getConnection() |
||
67 | |||
68 | /** |
||
69 | * Get the PHP MySQLi object |
||
70 | * |
||
71 | * @return \mysqli |
||
72 | * @throws ConnectionException |
||
73 | */ |
||
74 | public function getMysqliConnection() |
||
78 | } |
||
79 |