1 | <?php |
||
9 | class Dbal2Connection implements ConnectionInterface |
||
10 | { |
||
11 | |||
12 | /** |
||
13 | * |
||
14 | * @var AdapterInterface; |
||
15 | */ |
||
16 | protected $adapter; |
||
17 | |||
18 | /** |
||
19 | * |
||
20 | * @var \Doctrine\DBAL\Connection; |
||
21 | */ |
||
22 | protected $dbal; |
||
23 | |||
24 | /** |
||
25 | * @param AdapterInterface $adapter |
||
26 | * @param \Doctrine\DBAL\Connection $dbal |
||
27 | */ |
||
28 | public function __construct(AdapterInterface $adapter, \Doctrine\DBAL\Connection $dbal) |
||
33 | |||
34 | |||
35 | /** |
||
36 | * {@inheritdoc} |
||
37 | * @return mixed |
||
38 | */ |
||
39 | public function getResource() |
||
43 | |||
44 | /** |
||
45 | * {@inheritdoc} |
||
46 | * @throws Exception\UnsupportedFeatureException |
||
47 | */ |
||
48 | public function getHost() |
||
52 | |||
53 | /** |
||
54 | * {@inheritdoc} |
||
55 | * @throws Exception\RuntimeException |
||
56 | * @return string |
||
57 | */ |
||
58 | public function getCurrentSchema() |
||
67 | } |
||
68 |