Total Complexity | 4 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 4 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | class Manager |
||
12 | { |
||
13 | use HasConnectionTrait; |
||
14 | |||
15 | protected $_cache; |
||
16 | |||
17 | /** |
||
18 | * @param $table |
||
19 | * @return bool|mixed |
||
20 | */ |
||
21 | public function describeTable($table) |
||
22 | { |
||
23 | $data = $this->getCache()->describeTable($table); |
||
24 | if (!is_array($data)) { |
||
25 | return trigger_error("Cannot load metadata for table [$table]", E_USER_ERROR); |
||
26 | } |
||
27 | |||
28 | return $data; |
||
29 | } |
||
30 | |||
31 | /** |
||
32 | * @return Cache |
||
33 | */ |
||
34 | public function getCache() |
||
42 | } |
||
43 | } |
||
44 |