1 | <?php |
||
8 | class Db extends Provider |
||
9 | { |
||
10 | /** |
||
11 | * @var \RedBean_Instance |
||
12 | */ |
||
13 | private static $r; |
||
14 | |||
15 | /** |
||
16 | * @return \RedBean_Instance |
||
|
|||
17 | */ |
||
18 | public function __construct($config) |
||
26 | |||
27 | protected static function makeDB($config) |
||
45 | |||
46 | private static function setupDB($cfg) |
||
60 | |||
61 | private static function addDB($cfg) |
||
74 | |||
75 | private static function configureDB($cfg) |
||
89 | |||
90 | /** |
||
91 | * Return an Entity class name from the EntityProvider |
||
92 | * |
||
93 | * @param string $name |
||
94 | * |
||
95 | * @return string |
||
96 | */ |
||
97 | public static function entity($name) |
||
101 | |||
102 | private static function cfgToDSN($cfg) |
||
110 | |||
111 | private static function makeDSN($type, $host, $name) |
||
115 | } |
||
116 |
Adding a
@return
annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.