Total Complexity | 4 |
Total Lines | 34 |
Duplicated Lines | 0 % |
Coverage | 72.21% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | class Connection extends PDOConnection |
||
16 | { |
||
17 | /** |
||
18 | * {@inheritDoc} |
||
19 | 42 | */ |
|
20 | public function getSequenceNumber(string $name) : string |
||
21 | 42 | { |
|
22 | 42 | $stmt = $this->prepare('SELECT CONVERT(VARCHAR(MAX), current_value) FROM sys.sequences WHERE name = ?'); |
|
23 | 42 | $stmt->execute([$name]); |
|
24 | |||
25 | return $stmt->fetchColumn(); |
||
26 | } |
||
27 | |||
28 | 3 | /** |
|
29 | * {@inheritDoc} |
||
30 | 3 | */ |
|
31 | 3 | public function quote(string $input) : string |
|
41 | } |
||
42 | |||
43 | 31 | /** |
|
44 | * {@inheritDoc} |
||
45 | 31 | */ |
|
46 | protected function createStatement(\PDOStatement $stmt) : PDOStatement |
||
49 | } |
||
50 | } |
||
51 |