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\ToolResults;
|
---|
19 |
|
---|
20 | class Step extends \Google\Collection
|
---|
21 | {
|
---|
22 | protected $collection_key = 'labels';
|
---|
23 | protected $completionTimeType = Timestamp::class;
|
---|
24 | protected $completionTimeDataType = '';
|
---|
25 | protected $creationTimeType = Timestamp::class;
|
---|
26 | protected $creationTimeDataType = '';
|
---|
27 | /**
|
---|
28 | * @var string
|
---|
29 | */
|
---|
30 | public $description;
|
---|
31 | protected $deviceUsageDurationType = Duration::class;
|
---|
32 | protected $deviceUsageDurationDataType = '';
|
---|
33 | protected $dimensionValueType = StepDimensionValueEntry::class;
|
---|
34 | protected $dimensionValueDataType = 'array';
|
---|
35 | /**
|
---|
36 | * @var bool
|
---|
37 | */
|
---|
38 | public $hasImages;
|
---|
39 | protected $labelsType = StepLabelsEntry::class;
|
---|
40 | protected $labelsDataType = 'array';
|
---|
41 | protected $multiStepType = MultiStep::class;
|
---|
42 | protected $multiStepDataType = '';
|
---|
43 | /**
|
---|
44 | * @var string
|
---|
45 | */
|
---|
46 | public $name;
|
---|
47 | protected $outcomeType = Outcome::class;
|
---|
48 | protected $outcomeDataType = '';
|
---|
49 | protected $runDurationType = Duration::class;
|
---|
50 | protected $runDurationDataType = '';
|
---|
51 | /**
|
---|
52 | * @var string
|
---|
53 | */
|
---|
54 | public $state;
|
---|
55 | /**
|
---|
56 | * @var string
|
---|
57 | */
|
---|
58 | public $stepId;
|
---|
59 | protected $testExecutionStepType = TestExecutionStep::class;
|
---|
60 | protected $testExecutionStepDataType = '';
|
---|
61 | protected $toolExecutionStepType = ToolExecutionStep::class;
|
---|
62 | protected $toolExecutionStepDataType = '';
|
---|
63 |
|
---|
64 | /**
|
---|
65 | * @param Timestamp
|
---|
66 | */
|
---|
67 | public function setCompletionTime(Timestamp $completionTime)
|
---|
68 | {
|
---|
69 | $this->completionTime = $completionTime;
|
---|
70 | }
|
---|
71 | /**
|
---|
72 | * @return Timestamp
|
---|
73 | */
|
---|
74 | public function getCompletionTime()
|
---|
75 | {
|
---|
76 | return $this->completionTime;
|
---|
77 | }
|
---|
78 | /**
|
---|
79 | * @param Timestamp
|
---|
80 | */
|
---|
81 | public function setCreationTime(Timestamp $creationTime)
|
---|
82 | {
|
---|
83 | $this->creationTime = $creationTime;
|
---|
84 | }
|
---|
85 | /**
|
---|
86 | * @return Timestamp
|
---|
87 | */
|
---|
88 | public function getCreationTime()
|
---|
89 | {
|
---|
90 | return $this->creationTime;
|
---|
91 | }
|
---|
92 | /**
|
---|
93 | * @param string
|
---|
94 | */
|
---|
95 | public function setDescription($description)
|
---|
96 | {
|
---|
97 | $this->description = $description;
|
---|
98 | }
|
---|
99 | /**
|
---|
100 | * @return string
|
---|
101 | */
|
---|
102 | public function getDescription()
|
---|
103 | {
|
---|
104 | return $this->description;
|
---|
105 | }
|
---|
106 | /**
|
---|
107 | * @param Duration
|
---|
108 | */
|
---|
109 | public function setDeviceUsageDuration(Duration $deviceUsageDuration)
|
---|
110 | {
|
---|
111 | $this->deviceUsageDuration = $deviceUsageDuration;
|
---|
112 | }
|
---|
113 | /**
|
---|
114 | * @return Duration
|
---|
115 | */
|
---|
116 | public function getDeviceUsageDuration()
|
---|
117 | {
|
---|
118 | return $this->deviceUsageDuration;
|
---|
119 | }
|
---|
120 | /**
|
---|
121 | * @param StepDimensionValueEntry[]
|
---|
122 | */
|
---|
123 | public function setDimensionValue($dimensionValue)
|
---|
124 | {
|
---|
125 | $this->dimensionValue = $dimensionValue;
|
---|
126 | }
|
---|
127 | /**
|
---|
128 | * @return StepDimensionValueEntry[]
|
---|
129 | */
|
---|
130 | public function getDimensionValue()
|
---|
131 | {
|
---|
132 | return $this->dimensionValue;
|
---|
133 | }
|
---|
134 | /**
|
---|
135 | * @param bool
|
---|
136 | */
|
---|
137 | public function setHasImages($hasImages)
|
---|
138 | {
|
---|
139 | $this->hasImages = $hasImages;
|
---|
140 | }
|
---|
141 | /**
|
---|
142 | * @return bool
|
---|
143 | */
|
---|
144 | public function getHasImages()
|
---|
145 | {
|
---|
146 | return $this->hasImages;
|
---|
147 | }
|
---|
148 | /**
|
---|
149 | * @param StepLabelsEntry[]
|
---|
150 | */
|
---|
151 | public function setLabels($labels)
|
---|
152 | {
|
---|
153 | $this->labels = $labels;
|
---|
154 | }
|
---|
155 | /**
|
---|
156 | * @return StepLabelsEntry[]
|
---|
157 | */
|
---|
158 | public function getLabels()
|
---|
159 | {
|
---|
160 | return $this->labels;
|
---|
161 | }
|
---|
162 | /**
|
---|
163 | * @param MultiStep
|
---|
164 | */
|
---|
165 | public function setMultiStep(MultiStep $multiStep)
|
---|
166 | {
|
---|
167 | $this->multiStep = $multiStep;
|
---|
168 | }
|
---|
169 | /**
|
---|
170 | * @return MultiStep
|
---|
171 | */
|
---|
172 | public function getMultiStep()
|
---|
173 | {
|
---|
174 | return $this->multiStep;
|
---|
175 | }
|
---|
176 | /**
|
---|
177 | * @param string
|
---|
178 | */
|
---|
179 | public function setName($name)
|
---|
180 | {
|
---|
181 | $this->name = $name;
|
---|
182 | }
|
---|
183 | /**
|
---|
184 | * @return string
|
---|
185 | */
|
---|
186 | public function getName()
|
---|
187 | {
|
---|
188 | return $this->name;
|
---|
189 | }
|
---|
190 | /**
|
---|
191 | * @param Outcome
|
---|
192 | */
|
---|
193 | public function setOutcome(Outcome $outcome)
|
---|
194 | {
|
---|
195 | $this->outcome = $outcome;
|
---|
196 | }
|
---|
197 | /**
|
---|
198 | * @return Outcome
|
---|
199 | */
|
---|
200 | public function getOutcome()
|
---|
201 | {
|
---|
202 | return $this->outcome;
|
---|
203 | }
|
---|
204 | /**
|
---|
205 | * @param Duration
|
---|
206 | */
|
---|
207 | public function setRunDuration(Duration $runDuration)
|
---|
208 | {
|
---|
209 | $this->runDuration = $runDuration;
|
---|
210 | }
|
---|
211 | /**
|
---|
212 | * @return Duration
|
---|
213 | */
|
---|
214 | public function getRunDuration()
|
---|
215 | {
|
---|
216 | return $this->runDuration;
|
---|
217 | }
|
---|
218 | /**
|
---|
219 | * @param string
|
---|
220 | */
|
---|
221 | public function setState($state)
|
---|
222 | {
|
---|
223 | $this->state = $state;
|
---|
224 | }
|
---|
225 | /**
|
---|
226 | * @return string
|
---|
227 | */
|
---|
228 | public function getState()
|
---|
229 | {
|
---|
230 | return $this->state;
|
---|
231 | }
|
---|
232 | /**
|
---|
233 | * @param string
|
---|
234 | */
|
---|
235 | public function setStepId($stepId)
|
---|
236 | {
|
---|
237 | $this->stepId = $stepId;
|
---|
238 | }
|
---|
239 | /**
|
---|
240 | * @return string
|
---|
241 | */
|
---|
242 | public function getStepId()
|
---|
243 | {
|
---|
244 | return $this->stepId;
|
---|
245 | }
|
---|
246 | /**
|
---|
247 | * @param TestExecutionStep
|
---|
248 | */
|
---|
249 | public function setTestExecutionStep(TestExecutionStep $testExecutionStep)
|
---|
250 | {
|
---|
251 | $this->testExecutionStep = $testExecutionStep;
|
---|
252 | }
|
---|
253 | /**
|
---|
254 | * @return TestExecutionStep
|
---|
255 | */
|
---|
256 | public function getTestExecutionStep()
|
---|
257 | {
|
---|
258 | return $this->testExecutionStep;
|
---|
259 | }
|
---|
260 | /**
|
---|
261 | * @param ToolExecutionStep
|
---|
262 | */
|
---|
263 | public function setToolExecutionStep(ToolExecutionStep $toolExecutionStep)
|
---|
264 | {
|
---|
265 | $this->toolExecutionStep = $toolExecutionStep;
|
---|
266 | }
|
---|
267 | /**
|
---|
268 | * @return ToolExecutionStep
|
---|
269 | */
|
---|
270 | public function getToolExecutionStep()
|
---|
271 | {
|
---|
272 | return $this->toolExecutionStep;
|
---|
273 | }
|
---|
274 | }
|
---|
275 |
|
---|
276 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
277 | class_alias(Step::class, 'Google_Service_ToolResults_Step');
|
---|