示例#1
0
 public function begin(Context $ctx)
 {
     $request = new Proto\Vtgate\BeginRequest();
     if ($ctx->getCallerId()) {
         $request->setCallerId($ctx->getCallerId());
     }
     $response = $this->client->begin($ctx, $request);
     return new VTGateTx($this->client, $response->getSession());
 }