| Total Complexity | 4 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 25 | class ModelFactory |
||
| 26 | { |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Gets the Model |
||
| 30 | * @param string $modelClass |
||
| 31 | * @return QtModel |
||
| 32 | * @throws ModelException |
||
| 33 | */ |
||
| 34 | public static function get(string $modelClass): QtModel |
||
| 49 | } |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @param string $table |
||
| 53 | * @param string $idColumn |
||
| 54 | * @param array $foreignKeys |
||
| 55 | * @param array $hidden |
||
| 56 | * @return mixed |
||
| 57 | */ |
||
| 58 | public static function create(string $table, string $idColumn = 'id', array $foreignKeys = [], array $hidden = []) |
||
| 63 | } |
||
| 64 | } |