Firestore/src/FieldPath.php
public function pathString()
    {
        $out = [];
        foreach ($this->fieldNames as $part) {
            $out[] = $this->escapePathPart($part);
        }

        $fieldPath = implode('.', $out);

        return $fieldPath;
    }
public function pathString()
    {
        $out = [];
        foreach ($this->fieldNames as $part) {
            $out[] = $this->escapePathPart($part);
        }

        $fieldPath = implode('.', $out);

        return $fieldPath;
    }
public function pathString ( ) { $ out = [ ] ; foreach ( $ this -> fieldNames as $ part ) { $ out [ ] = $ this -> escapePathPart ( $ part ) ; } $ fieldPath = implode ( '.' , $ out ) ; return $ fieldPath ; }
Get the current path as a string, with special characters escaped.

Example:
```
$string = $path->pathString();
```

@return string
Get the current path as a string with special characters escaped .