private function findTableSchemas($schema = null)
    {
        $tableNames = $this->getTableNames($schema, true);

        if (is_callable($this->tableNameFilter)) {
            $tableNames = array_filter($tableNames,
                function($tableName) use ($schema) {
                    return call_user_func($this->tableNameFilter, $tableName, $schema);
                }
            );
        }

        $tableSchemas = array_map(
            function($tableName) use ($schema) {
                $tableSchema = new TableSchema();
                $tableNameFull = $schema === null ? $tableName : "$schema.$tableName";
                $this->resolveTableNames($tableSchema, $tableNameFull);
                return $tableSchema;
            },
            $tableNames);

        return $tableSchemas;
    }
private function findTableSchemas($schema = null)
    {
        $tableNames = $this->getTableNames($schema, true);

        if (is_callable($this->tableNameFilter)) {
            $tableNames = array_filter($tableNames,
                function($tableName) use ($schema) {
                    return call_user_func($this->tableNameFilter, $tableName, $schema);
                }
            );
        }

        $tableSchemas = array_map(
            function($tableName) use ($schema) {
                $tableSchema = new TableSchema();
                $tableNameFull = $schema === null ? $tableName : "$schema.$tableName";
                $this->resolveTableNames($tableSchema, $tableNameFull);
                return $tableSchema;
            },
            $tableNames);

        return $tableSchemas;
    }
private function findTableSchemas ( $ schema = null ) { $ tableNames = $ this -> getTableNames ( $ schema , true ) ; if ( is_callable ( $ this -> tableNameFilter ) ) { $ tableNames = array_filter ( $ tableNames , function ( $ tableName ) use ( $ schema ) { return call_user_func ( $ this -> tableNameFilter , $ tableName , $ schema ) ; } ) ; } $ tableSchemas = array_map ( function ( $ tableName ) use ( $ schema ) { $ tableSchema = new TableSchema ( ) ; $ tableNameFull = $ schema === null ? $ tableName : "$schema.$tableName" ; $ this -> resolveTableNames ( $ tableSchema , $ tableNameFull ) ; return $ tableSchema ; } , $ tableNames ) ; return $ tableSchemas ; }
Searching table schemas in a default or specified schema
@param string|null $schema
@return array
Searching table schemas in a default or specified schema