private function prepareQueryFiler($query)
    {
        $result = [];
        foreach ($query as $key => $value) {
            if (is_array($value)) {
                $result[$key] = $this->prepareQueryFiler($value);
            } elseif (is_string($value) && preg_match('#^(MongoDB\\\\BSON\\\\[A-Za-z]+)\\((.*)\\)$#s', $value, $matches)) {
                $class = $matches[1];
                $objectValue = $matches[1];

                try {
                    $result[$key] = new $class($objectValue);
                } catch (\Exception $e) {
                    $result[$key] = $value;
                }
            } else {
                $result[$key] = $value;
            }
        }
        return $result;
    }
private function prepareQueryFiler($query)
    {
        $result = [];
        foreach ($query as $key => $value) {
            if (is_array($value)) {
                $result[$key] = $this->prepareQueryFiler($value);
            } elseif (is_string($value) && preg_match('#^(MongoDB\\\\BSON\\\\[A-Za-z]+)\\((.*)\\)$#s', $value, $matches)) {
                $class = $matches[1];
                $objectValue = $matches[1];

                try {
                    $result[$key] = new $class($objectValue);
                } catch (\Exception $e) {
                    $result[$key] = $value;
                }
            } else {
                $result[$key] = $value;
            }
        }
        return $result;
    }
private function prepareQueryFiler ( $ query ) { $ result = [ ] ; foreach ( $ query as $ key => $ value ) { if ( is_array ( $ value ) ) { $ result [ $ key ] = $ this -> prepareQueryFiler ( $ value ) ; } elseif ( is_string ( $ value ) && preg_match ( '#^(MongoDB\\\\BSON\\\\[A-Za-z]+)\\((.*)\\)$#s' , $ value , $ matches ) ) { $ class = $ matches [ 1 ] ; $ objectValue = $ matches [ 1 ] ; try { $ result [ $ key ] = new $ class ( $ objectValue ) ; } catch ( \ Exception $ e ) { $ result [ $ key ] = $ value ; } } else { $ result [ $ key ] = $ value ; } } return $ result ; }
Prepare query filer for explain.
Converts BSON object log entries into actual objects.

@param array $query raw query filter.
@return array|string prepared query
Prepare query filer for explain . Converts BSON object log entries into actual objects .