1 | <?php |
||
22 | class Rocket |
||
23 | { |
||
24 | const VERSION = '0.1.0'; |
||
25 | |||
26 | |||
27 | /** |
||
28 | * @var array |
||
29 | */ |
||
30 | protected static $config; |
||
31 | |||
32 | /** |
||
33 | * @var array |
||
34 | */ |
||
35 | protected static $configCache = []; |
||
36 | |||
37 | /** |
||
38 | * @var array |
||
39 | */ |
||
40 | protected static $cons = []; |
||
41 | |||
42 | /** |
||
43 | * @var array |
||
44 | */ |
||
45 | protected static $tableMaps = []; |
||
46 | |||
47 | |||
48 | /** |
||
49 | * @param string $name The connection name |
||
|
|||
50 | * @param string $mode The connection mode, a Rocket class constant |
||
51 | * |
||
52 | * @return ConnectionInterface|\PDO |
||
53 | * |
||
54 | * @throws Connection\Exception\ConnectionNotFoundException |
||
55 | */ |
||
56 | 1 | public static function getConnection($name = null, $mode = ConnectionInterface::CONNECTION_MODE_WRITE) |
|
68 | |||
69 | /** |
||
70 | * @param null|string $name |
||
71 | * |
||
72 | * @return string |
||
73 | */ |
||
74 | 1 | public static function getConnectionDriver($name = null) |
|
85 | |||
86 | /** |
||
87 | * @param array $config |
||
88 | */ |
||
89 | 7 | public static function setConfiguration(array $config) |
|
94 | |||
95 | /** |
||
96 | * @param string $key |
||
97 | * |
||
98 | * @return mixed |
||
99 | * |
||
100 | * @throws ConfigurationKeyNotFoundException |
||
101 | */ |
||
102 | 4 | public static function getConfiguration($key) |
|
124 | |||
125 | /** |
||
126 | * @param string $classNamespace |
||
127 | * |
||
128 | * @return TableMapInterface |
||
129 | * |
||
130 | * @throws \RuntimeException |
||
131 | */ |
||
132 | 3 | public static function getTableMap($classNamespace) |
|
160 | } |
||
161 |
This check looks for
@param
annotations where the type inferred by our type inference engine differs from the declared type.It makes a suggestion as to what type it considers more descriptive.
Most often this is a case of a parameter that can be null in addition to its declared types.