1 | <?php |
||
9 | class DatabaseService implements CloudEnvironmentAware, DatabaseServiceInterface |
||
10 | { |
||
11 | /** |
||
12 | * @var \Acquia\Cloud\Environment\CloudEnvironmentInterface |
||
13 | */ |
||
14 | private $cloudEnvironment; |
||
15 | |||
16 | /** |
||
17 | * @var \Net_DNS2_Resolver |
||
18 | */ |
||
19 | private $resolver; |
||
20 | |||
21 | /** |
||
22 | * @param \Acquia\Cloud\Environment\CloudEnvironmentInterface $cloudEnvironment |
||
23 | */ |
||
24 | 24 | public function __construct(CloudEnvironmentInterface $cloudEnvironment = null) |
|
31 | |||
32 | /** |
||
33 | * {@inheritDoc} |
||
34 | * |
||
35 | * @return \Acquia\Cloud\Database\DatabaseService |
||
36 | */ |
||
37 | 24 | public function setCloudEnvironment(CloudEnvironmentInterface $cloudEnvironment) |
|
42 | |||
43 | /** |
||
44 | * {@inheritDoc} |
||
45 | */ |
||
46 | 6 | public function getCloudEnvironment() |
|
50 | |||
51 | /** |
||
52 | * @param \Net_DNS2_Resolver $resolver |
||
53 | * |
||
54 | * @return \Acquia\Cloud\Database\DatabaseService |
||
55 | */ |
||
56 | 12 | public function setResolver(\Net_DNS2_Resolver $resolver) |
|
61 | |||
62 | /** |
||
63 | * @return \Net_DNS2_Resolver |
||
64 | */ |
||
65 | 15 | public function getResolver() |
|
73 | |||
74 | /** |
||
75 | * {@inheritDoc} |
||
76 | */ |
||
77 | 9 | public function credentials($dbName) |
|
91 | |||
92 | /** |
||
93 | * @param in $clusterId |
||
94 | * |
||
95 | * @return string |
||
96 | */ |
||
97 | 9 | public function getCurrentHost($clusterId) |
|
107 | } |
||
108 |