| 1 | <?php |
||
| 5 | class DatabaseCredentials extends \ArrayObject |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @return int |
||
| 9 | */ |
||
| 10 | 6 | public function id() |
|
| 14 | |||
| 15 | /** |
||
| 16 | * @return int |
||
| 17 | */ |
||
| 18 | 6 | public function clusterId() |
|
| 22 | |||
| 23 | /** |
||
| 24 | * @return string |
||
| 25 | */ |
||
| 26 | 6 | public function role() |
|
| 30 | |||
| 31 | /** |
||
| 32 | * @return string |
||
| 33 | */ |
||
| 34 | 6 | public function databaseName() |
|
| 38 | |||
| 39 | /** |
||
| 40 | * @return string |
||
| 41 | */ |
||
| 42 | 9 | public function username() |
|
| 46 | |||
| 47 | /** |
||
| 48 | * @return string |
||
| 49 | */ |
||
| 50 | 9 | public function password() |
|
| 54 | |||
| 55 | /** |
||
| 56 | * @return string |
||
| 57 | */ |
||
| 58 | 6 | public function port() |
|
| 62 | |||
| 63 | /** |
||
| 64 | * @return string |
||
| 65 | */ |
||
| 66 | 9 | public function host() |
|
| 70 | |||
| 71 | /** |
||
| 72 | * @return array |
||
| 73 | */ |
||
| 74 | 9 | public function urls() |
|
| 78 | |||
| 79 | /** |
||
| 80 | * @return string |
||
| 81 | */ |
||
| 82 | 6 | public function activeUrl() |
|
| 88 | |||
| 89 | /** |
||
| 90 | * Returns the DSN for the active host. |
||
| 91 | * |
||
| 92 | * @return string |
||
| 93 | * |
||
| 94 | * @throws \OutOfBoundsException |
||
| 95 | */ |
||
| 96 | 18 | public function dsn() |
|
| 111 | |||
| 112 | /** |
||
| 113 | * Returns the DSN for the active host. |
||
| 114 | */ |
||
| 115 | 9 | public function __toString() |
|
| 119 | } |
||
| 120 |