Total Complexity | 1 |
Total Lines | 19 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
4 | abstract class AbstractDatabase extends \WebServCo\Framework\AbstractLibrary |
||
5 | { |
||
6 | protected $db; |
||
7 | protected $stmt; |
||
8 | protected $lastInsertId; |
||
9 | protected $rows; |
||
10 | |||
11 | /** |
||
12 | * Get last inserted Id. |
||
13 | * |
||
14 | * https://dev.mysql.com/doc/refman/5.5/en/information-functions.html#function_last-insert-id |
||
15 | * If you insert multiple rows using a single INSERT statement, |
||
16 | * LAST_INSERT_ID() returns the value generated for the first inserted row only. |
||
17 | * The reason for this is to make it possible to reproduce easily the same |
||
18 | * INSERT statement against some other server. |
||
19 | */ |
||
20 | public function lastInsertId() |
||
25 |