cursor() public method

This is only set when the entity was obtained from a query result. It can be used to manually paginate results. Example: $cursor = $entity->cursor();
public cursor ( ) : string | null
return string | null
示例#1
0
 public function testCursor()
 {
     $entity = new Entity($this->key, []);
     $this->assertNull($entity->cursor());
     $entity = new Entity($this->key, [], ['cursor' => 'foo']);
     $this->assertEquals('foo', $entity->cursor());
 }