public static function hasMigrationFields(string $moduleName, array $fields, array $options = []): bool
    {
        $config = (new ModuleConfig(ConfigType::MIGRATION(), $moduleName, null, $options))->parseToArray();

        $fieldKeys = array_flip($fields);
        $diff = array_diff_key($fieldKeys, $config);

        return empty($diff);
    }
public static function hasMigrationFields(string $moduleName, array $fields, array $options = []): bool
    {
        $config = (new ModuleConfig(ConfigType::MIGRATION(), $moduleName, null, $options))->parseToArray();

        $fieldKeys = array_flip($fields);
        $diff = array_diff_key($fieldKeys, $config);

        return empty($diff);
    }
public static function hasMigrationFields ( string $ moduleName , array $ fields , array $ options = [ ] ) : bool { $ config = ( new ModuleConfig ( ConfigType :: MIGRATION ( ) , $ moduleName , null , $ options ) ) -> parseToArray ( ) ; $ fieldKeys = array_flip ( $ fields ) ; $ diff = array_diff_key ( $ fieldKeys , $ config ) ; return empty ( $ diff ) ; }
Checks whether the provided fields exists in migration configuration

@param string $moduleName Module name
@param mixed[] $fields List of fields to be checked
@param mixed[] $options Options for ModuleConfig constructor
@return bool
Checks whether the provided fields exists in migration configuration