Google\Cloud\Datastore\Key::jsonSerialize PHP 메소드

jsonSerialize() 공개 메소드

public jsonSerialize ( )
    public function jsonSerialize()
    {
        return $this->keyObject();
    }

Usage Example

예제 #1
0
 public function testJsonSerialize()
 {
     $key = new Key('foo');
     $key->pathElement('Robots', '1000', Key::TYPE_NAME);
     $this->assertEquals($key->jsonSerialize(), $key->keyObject());
 }