public function create($cacheFilePath = null)
    {
        $map = [];
        if ($cacheFilePath) {
            $map = $this->resolveCachedMap($cacheFilePath);
        }
        if (!is_array($map)) {
            $map = $this->createMap();
            if ($cacheFilePath) {
                $this->cacheMap($cacheFilePath, $map);
            }
        }

        $this->map = $map;

        return $map;
    }
public function create($cacheFilePath = null)
    {
        $map = [];
        if ($cacheFilePath) {
            $map = $this->resolveCachedMap($cacheFilePath);
        }
        if (!is_array($map)) {
            $map = $this->createMap();
            if ($cacheFilePath) {
                $this->cacheMap($cacheFilePath, $map);
            }
        }

        $this->map = $map;

        return $map;
    }
public function create ( $ cacheFilePath = null ) { $ map = [ ] ; if ( $ cacheFilePath ) { $ map = $ this -> resolveCachedMap ( $ cacheFilePath ) ; } if ( ! is_array ( $ map ) ) { $ map = $ this -> createMap ( ) ; if ( $ cacheFilePath ) { $ this -> cacheMap ( $ cacheFilePath , $ map ) ; } } $ this -> map = $ map ; return $ map ; }
Setups Mongo collections map
If cache file already exists, then map is read directly from this file

@param string $cacheFilePath     Path to cache file. If null then cache is skipped
@return $this
Setups Mongo collections map If cache file already exists then map is read directly from this file