| Total Complexity | 8 | 
| Total Lines | 50 | 
| Duplicated Lines | 0 % | 
| Coverage | 0% | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 12 | final class Connection extends AbstractConnectionMiddleware | ||
| 13 | { | ||
| 14 | public function __construct(ConnectionInterface $connection) | ||
| 15 |     { | ||
| 16 | parent::__construct($connection); | ||
| 17 | } | ||
| 18 | |||
| 19 | public function __destruct() | ||
| 20 |     { | ||
| 21 |         _log()->debug('Disconnecting'); | ||
| 22 | } | ||
| 23 | |||
| 24 | public function prepare(string $sql): DriverStatement | ||
| 25 |     { | ||
| 26 | return new Statement(parent::prepare($sql), $sql); | ||
| 27 | } | ||
| 28 | |||
| 29 | public function query(string $sql): Result | ||
| 30 |     { | ||
| 31 |         _log()->debug('Executing query: {sql}', ['sql' => $sql]); | ||
| 32 | |||
| 33 | return parent::query($sql); | ||
| 34 | } | ||
| 35 | |||
| 36 | public function exec(string $sql): int|string | ||
| 37 |     { | ||
| 38 |         _log()->debug('Executing statement: {sql}', ['sql' => $sql]); | ||
| 39 | |||
| 40 | return parent::exec($sql); | ||
| 41 | } | ||
| 42 | |||
| 43 | public function beginTransaction(): void | ||
| 44 |     { | ||
| 45 |         _log()->debug('Beginning transaction'); | ||
| 46 | |||
| 47 | parent::beginTransaction(); | ||
| 48 | } | ||
| 49 | |||
| 50 | public function commit(): void | ||
| 55 | } | ||
| 56 | |||
| 57 | public function rollBack(): void | ||
| 58 |     { | ||
| 62 | } | ||
| 63 | } | ||
| 64 |