Google\Cloud\Datastore\Query\Query::end PHP Method

end() public method

Example: $query->end($lastResultCursor);
See also: https://cloud.google.com/datastore/docs/concepts/queries#cursors_limits_and_offsets Cursors, Limits and Offsets
public end ( string $cursor ) : Query
$cursor string The cursor on which to end the result.
return Query
    public function end($cursor)
    {
        $this->query['endCursor'] = $cursor;
        return $this;
    }