private function cacheMap($cacheFilePath, $map)
    {
        if (!file_exists(dirname($cacheFilePath))) {
            mkdir(dirname($cacheFilePath), 0777, true);
        }
        return FileWriter::writeObject($cacheFilePath, $map, true);
    }
private function cacheMap($cacheFilePath, $map)
    {
        if (!file_exists(dirname($cacheFilePath))) {
            mkdir(dirname($cacheFilePath), 0777, true);
        }
        return FileWriter::writeObject($cacheFilePath, $map, true);
    }
private function cacheMap ( $ cacheFilePath , $ map ) { if ( ! file_exists ( dirname ( $ cacheFilePath ) ) ) { mkdir ( dirname ( $ cacheFilePath ) , 0777 , true ) ; } return FileWriter :: writeObject ( $ cacheFilePath , $ map , true ) ; }
Saves generated map to file

@param string $cacheFilePath     Path to cache file
@param array $map    Generated map
@return int
Saves generated map to file