Firestore/src/FirestoreClient.php
public function document($name)
    {
        return $this->getDocumentReference(
            $this->connection,
            $this->valueMapper,
            $this->projectId,
            $this->database,
            $name
        );
    }
public function document($name)
    {
        return $this->getDocumentReference(
            $this->connection,
            $this->valueMapper,
            $this->projectId,
            $this->database,
            $name
        );
    }
public function document ( $ name ) { return $ this -> getDocumentReference ( $ this -> connection , $ this -> valueMapper , $ this -> projectId , $ this -> database , $ name ) ; }
Get a reference to a Firestore document.

Example:
```
$document = $firestore->document('users/john');
```

@param string $name The document name or a path, relative to the database.
@return DocumentReference
@throws \InvalidArgumentException If the given path is not a valid document path.
Get a reference to a Firestore document .