$document function

DocumentQuery $document (
  1. [Document document]
)

Return a DocumentQuery wrapping the given document. If document is omitted, the default document instance is assumed.

Implementation

DocumentQuery $document([Document document]) => new _DocumentQuery(document);