Firestore/src/Query.php
private function snapshotCursorValues(DocumentSnapshot $snapshot, array $orderBy)
    {
        $fieldValues = [];
        foreach ($orderBy as $order) {
            $path = $order['field']['fieldPath'];
            if ($path === self::DOCUMENT_ID) {
                continue;
            }

            $fieldValues[] = $snapshot->get($path);
        }

        $fieldValues[] = $snapshot->reference();
        return $fieldValues;
    }
private function snapshotCursorValues(DocumentSnapshot $snapshot, array $orderBy)
    {
        $fieldValues = [];
        foreach ($orderBy as $order) {
            $path = $order['field']['fieldPath'];
            if ($path === self::DOCUMENT_ID) {
                continue;
            }

            $fieldValues[] = $snapshot->get($path);
        }

        $fieldValues[] = $snapshot->reference();
        return $fieldValues;
    }
private function snapshotCursorValues ( DocumentSnapshot $ snapshot , array $ orderBy ) { $ fieldValues = [ ] ; foreach ( $ orderBy as $ order ) { $ path = $ order [ 'field' ] [ 'fieldPath' ] ; if ( $ path === self :: DOCUMENT_ID ) { continue ; } $ fieldValues [ ] = $ snapshot -> get ( $ path ) ; } $ fieldValues [ ] = $ snapshot -> reference ( ) ; return $ fieldValues ; }
Determine field values for Document Snapshot cursors.

@param DocumentSnapshot $snapshot
@param array $orderBy
@return $fieldValues
Determine field values for Document Snapshot cursors .