public static function createTable($table)
    {
        $tableName = $table;
        if (\is_array($table)) {
            $tableName = \current($table);
            $tableAlias = \key($table);
        }

        $newTable = new Table($tableName);

        if (isset($tableAlias) && !is_numeric($tableAlias)) {
            $newTable->setAlias($tableAlias);
        }

        return $newTable;
    }