| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 42 | 408 | public function getSchema(string $table): AbstractTable |
|
| 43 | { |
||
| 44 | 408 | if (!isset($this->schemas[$table])) { |
|
| 45 | //We have to declare existed to prevent dropping existed schema |
||
| 46 | 408 | $this->schemas[$table] = $this->database->table($table)->getSchema(); |
|
|
|
|||
| 47 | } |
||
| 48 | |||
| 49 | 408 | return $this->schemas[$table]; |
|
| 50 | } |
||
| 73 |