| 1 | <?php |
||
| 13 | class SQLLogger extends AdapterAbstract implements DoctrineSQLLogger |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var BenchmarkInterface |
||
| 17 | */ |
||
| 18 | protected $currentBenchmark; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Logs a SQL statement |
||
| 22 | * |
||
| 23 | * @param string $sql The SQL to be executed |
||
| 24 | * @param array|null $params The SQL parameters |
||
| 25 | * @param array|null $types The SQL parameter types |
||
| 26 | * @return void |
||
| 27 | */ |
||
| 28 | 1 | public function startQuery($sql, array $params = null, array $types = null) |
|
| 37 | |||
| 38 | /** |
||
| 39 | * Marks the last started query as stopped |
||
| 40 | * |
||
| 41 | * @return void |
||
| 42 | */ |
||
| 43 | 1 | public function stopQuery() |
|
| 47 | |||
| 48 | /** |
||
| 49 | * @return BenchmarkInterface |
||
| 50 | */ |
||
| 51 | 1 | public function getCurrentBenchmark() |
|
| 55 | |||
| 56 | /** |
||
| 57 | * @param BenchmarkInterface $currentBenchmark |
||
| 58 | */ |
||
| 59 | 1 | public function setCurrentBenchmark(BenchmarkInterface $currentBenchmark) |
|
| 63 | } |
||
| 64 |