1 | <?php |
||
9 | class Capsule5Connection implements ConnectionInterface |
||
10 | { |
||
11 | |||
12 | /** |
||
13 | * |
||
14 | * @var AdapterInterface; |
||
15 | */ |
||
16 | protected $adapter; |
||
17 | |||
18 | /** |
||
19 | * |
||
20 | * @var \Illuminate\Database\Capsule\Manager; |
||
21 | */ |
||
22 | protected $capsule; |
||
23 | |||
24 | |||
25 | /** |
||
26 | * @param AdapterInterface $adapter |
||
27 | * @param \Illuminate\Database\Capsule\Manager $capsule |
||
28 | */ |
||
29 | public function __construct(AdapterInterface $adapter, \Illuminate\Database\Capsule\Manager $capsule) |
||
34 | |||
35 | |||
36 | /** |
||
37 | * {@inheritdoc} |
||
38 | * @return \PDO |
||
39 | */ |
||
40 | public function getResource() |
||
44 | |||
45 | /** |
||
46 | * {@inheritdoc} |
||
47 | * @throws Exception\UnsupportedFeatureException |
||
48 | */ |
||
49 | public function getHost() |
||
53 | |||
54 | /** |
||
55 | * {@inheritdoc} |
||
56 | * @throws Exception\RuntimeException |
||
57 | * @return string |
||
58 | */ |
||
59 | public function getCurrentSchema() |
||
68 | } |
||
69 |