Skip to content

Commit 1590582

Browse files
1 parent 49a6a8c commit 1590582

2 files changed

Lines changed: 103 additions & 6 deletions

File tree

src/FirebaseDataConnect/GraphqlErrorExtensions.php

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@
1717

1818
namespace Google\Service\FirebaseDataConnect;
1919

20-
class GraphqlErrorExtensions extends \Google\Model
20+
class GraphqlErrorExtensions extends \Google\Collection
2121
{
22+
protected $collection_key = 'workarounds';
2223
/**
2324
* @var string
2425
*/
@@ -34,7 +35,9 @@ class GraphqlErrorExtensions extends \Google\Model
3435
/**
3536
* @var string
3637
*/
37-
public $resource;
38+
public $warningLevel;
39+
protected $workaroundsType = Workaround::class;
40+
protected $workaroundsDataType = 'array';
3841

3942
/**
4043
* @param string
@@ -81,16 +84,30 @@ public function getFile()
8184
/**
8285
* @param string
8386
*/
84-
public function setResource($resource)
87+
public function setWarningLevel($warningLevel)
8588
{
86-
$this->resource = $resource;
89+
$this->warningLevel = $warningLevel;
8790
}
8891
/**
8992
* @return string
9093
*/
91-
public function getResource()
94+
public function getWarningLevel()
9295
{
93-
return $this->resource;
96+
return $this->warningLevel;
97+
}
98+
/**
99+
* @param Workaround[]
100+
*/
101+
public function setWorkarounds($workarounds)
102+
{
103+
$this->workarounds = $workarounds;
104+
}
105+
/**
106+
* @return Workaround[]
107+
*/
108+
public function getWorkarounds()
109+
{
110+
return $this->workarounds;
94111
}
95112
}
96113

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
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+
18+
namespace Google\Service\FirebaseDataConnect;
19+
20+
class Workaround extends \Google\Model
21+
{
22+
/**
23+
* @var string
24+
*/
25+
public $description;
26+
/**
27+
* @var string
28+
*/
29+
public $reason;
30+
/**
31+
* @var string
32+
*/
33+
public $replace;
34+
35+
/**
36+
* @param string
37+
*/
38+
public function setDescription($description)
39+
{
40+
$this->description = $description;
41+
}
42+
/**
43+
* @return string
44+
*/
45+
public function getDescription()
46+
{
47+
return $this->description;
48+
}
49+
/**
50+
* @param string
51+
*/
52+
public function setReason($reason)
53+
{
54+
$this->reason = $reason;
55+
}
56+
/**
57+
* @return string
58+
*/
59+
public function getReason()
60+
{
61+
return $this->reason;
62+
}
63+
/**
64+
* @param string
65+
*/
66+
public function setReplace($replace)
67+
{
68+
$this->replace = $replace;
69+
}
70+
/**
71+
* @return string
72+
*/
73+
public function getReplace()
74+
{
75+
return $this->replace;
76+
}
77+
}
78+
79+
// Adding a class alias for backwards compatibility with the previous class name.
80+
class_alias(Workaround::class, 'Google_Service_FirebaseDataConnect_Workaround');

0 commit comments

Comments
 (0)