src/Loaders/ProposedOkFilenameLoader.php
/**
     * Return's an array with the proposed .OK filenames as key and the matching CSV
     * files as values for the import with the passed serial.
     *
     * Based on the passed serial, the files with the configured prefix from the also
     * configured source directory will be loaded and processed to return the array
     * with the proposed .OK filenames.
     *
     * @return array The array with key => value pairs of the proposed .OK and the matching CSV files
     */
Return's an array with the proposed .OK filenames as key and the matching CSV
files as values for the import with the passed serial.

Based on the passed serial, the files with the configured prefix from the also
configured source directory will be loaded and processed to return the array
with the proposed .OK filenames.

@return array The array with key => value pairs of the proposed .OK and the matching CSV files
Return ' s an array with the proposed . OK filenames as key and the matching CSV files as values for the import with the passed serial . Based on the passed serial the files with the configured prefix from the also configured source directory will be loaded and processed to return the array with the proposed . OK filenames . @return array The array with key = > value pairs of the proposed . OK and the matching CSV files
protected function propsedOkFilenames() : array
    {
        $okFilenames = array();
        $patternKeys = $this->getPatternKeys();
        for ($i = 1; $i <= sizeof($patternKeys); $i++) {
            $keys = array();
            for ($z = 0; $z < $i; $z++) {
                $keys[] = $patternKeys[$z];
            }
            $okFilenames = array_merge_recursive($okFilenames, $this->proposedOkFilenamesByKeys($keys));
        }
        return $okFilenames;
    }
protected function propsedOkFilenames ( ) : array { $ okFilenames = array ( ) ; $ patternKeys = $ this -> getPatternKeys ( ) ; for ( $ i = 1 ; $ i <= sizeof ( $ patternKeys ) ; $ i ++ ) { $ keys = array ( ) ; for ( $ z = 0 ; $ z < $ i ; $ z ++ ) { $ keys [ ] = $ patternKeys [ $ z ] ; } $ okFilenames = array_merge_recursive ( $ okFilenames , $ this -> proposedOkFilenamesByKeys ( $ keys ) ) ; } return $ okFilenames ; }
Return's an array with the proposed .OK filenames as key and the matching CSV
 files as values for the import with the passed serial.
Return ' s an array with the proposed . OK filenames as key and the matching CSV files as values for the import with the passed serial .
// initialize the array for the available okFilenames // load the pattern keys (prefix, filename and suffix), // that has to be used from the configuration // prepare the .OK filenames based on the found CSV file information // initialize the array for the pattern that has to used to load // the propsed .OK file for // load the parts from the matches // merge the proposed .OK filenames for the passed keys into the array // prepare and return the pattern for the OK file