Total Complexity | 4 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | class DBLibPDO extends \PDO |
||
18 | { |
||
19 | /** |
||
20 | * Returns value of the last inserted ID. |
||
21 | * @param string|null $sequence the sequence name. Defaults to null. |
||
22 | * @return int last inserted ID value. |
||
23 | */ |
||
24 | public function lastInsertId($sequence = null) |
||
27 | } |
||
28 | |||
29 | /** |
||
30 | * Retrieve a database connection attribute. |
||
31 | * |
||
32 | * It is necessary to override PDO's method as some MSSQL PDO driver (e.g. dblib) does not |
||
33 | * support getting attributes. |
||
34 | * @param int $attribute One of the PDO::ATTR_* constants. |
||
35 | * @return mixed A successful call returns the value of the requested PDO attribute. |
||
36 | * An unsuccessful call returns null. |
||
37 | */ |
||
38 | public function getAttribute($attribute) |
||
52 |