source: vendor/google/apiclient-services/src/Spanner/ResultSet.php

Last change on this file was e3d4e0a, checked in by Vlado 222039 <vlado.popovski@…>, 7 days ago

Upload project files

  • Property mode set to 100644
File size: 2.2 KB
Line 
1<?php
2/*
3 * Copyright 2014 Google Inc.
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
6 * use this file except in compliance with the License. You may obtain a copy of
7 * the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14 * License for the specific language governing permissions and limitations under
15 * the License.
16 */
17
18namespace Google\Service\Spanner;
19
20class ResultSet extends \Google\Collection
21{
22 protected $collection_key = 'rows';
23 protected $metadataType = ResultSetMetadata::class;
24 protected $metadataDataType = '';
25 protected $precommitTokenType = MultiplexedSessionPrecommitToken::class;
26 protected $precommitTokenDataType = '';
27 /**
28 * @var array[]
29 */
30 public $rows;
31 protected $statsType = ResultSetStats::class;
32 protected $statsDataType = '';
33
34 /**
35 * @param ResultSetMetadata
36 */
37 public function setMetadata(ResultSetMetadata $metadata)
38 {
39 $this->metadata = $metadata;
40 }
41 /**
42 * @return ResultSetMetadata
43 */
44 public function getMetadata()
45 {
46 return $this->metadata;
47 }
48 /**
49 * @param MultiplexedSessionPrecommitToken
50 */
51 public function setPrecommitToken(MultiplexedSessionPrecommitToken $precommitToken)
52 {
53 $this->precommitToken = $precommitToken;
54 }
55 /**
56 * @return MultiplexedSessionPrecommitToken
57 */
58 public function getPrecommitToken()
59 {
60 return $this->precommitToken;
61 }
62 /**
63 * @param array[]
64 */
65 public function setRows($rows)
66 {
67 $this->rows = $rows;
68 }
69 /**
70 * @return array[]
71 */
72 public function getRows()
73 {
74 return $this->rows;
75 }
76 /**
77 * @param ResultSetStats
78 */
79 public function setStats(ResultSetStats $stats)
80 {
81 $this->stats = $stats;
82 }
83 /**
84 * @return ResultSetStats
85 */
86 public function getStats()
87 {
88 return $this->stats;
89 }
90}
91
92// Adding a class alias for backwards compatibility with the previous class name.
93class_alias(ResultSet::class, 'Google_Service_Spanner_ResultSet');
Note: See TracBrowser for help on using the repository browser.