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\Testing;
19 
20 class TestMatrix extends \Google\Collection
21 {
22   protected $collection_key = 'testExecutions';
23   protected $clientInfoType = ClientInfo::class;
24   protected $clientInfoDataType = '';
25   protected $environmentMatrixType = EnvironmentMatrix::class;
26   protected $environmentMatrixDataType = '';
27   /**
28    * @var bool
29    */
30   public $failFast;
31   /**
32    * @var int
33    */
34   public $flakyTestAttempts;
35   /**
36    * @var string
37    */
38   public $invalidMatrixDetails;
39   /**
40    * @var string
41    */
42   public $outcomeSummary;
43   /**
44    * @var string
45    */
46   public $projectId;
47   protected $resultStorageType = ResultStorage::class;
48   protected $resultStorageDataType = '';
49   /**
50    * @var string
51    */
52   public $state;
53   protected $testExecutionsType = TestExecution::class;
54   protected $testExecutionsDataType = 'array';
55   /**
56    * @var string
57    */
58   public $testMatrixId;
59   protected $testSpecificationType = TestSpecification::class;
60   protected $testSpecificationDataType = '';
61   /**
62    * @var string
63    */
64   public $timestamp;
65 
66   /**
67    * @param ClientInfo
68    */
69   public function setClientInfo(ClientInfo $clientInfo)
70   {
71     $this->clientInfo = $clientInfo;
72   }
73   /**
74    * @return ClientInfo
75    */
76   public function getClientInfo()
77   {
78     return $this->clientInfo;
79   }
80   /**
81    * @param EnvironmentMatrix
82    */
83   public function setEnvironmentMatrix(EnvironmentMatrix $environmentMatrix)
84   {
85     $this->environmentMatrix = $environmentMatrix;
86   }
87   /**
88    * @return EnvironmentMatrix
89    */
90   public function getEnvironmentMatrix()
91   {
92     return $this->environmentMatrix;
93   }
94   /**
95    * @param bool
96    */
97   public function setFailFast($failFast)
98   {
99     $this->failFast = $failFast;
100   }
101   /**
102    * @return bool
103    */
104   public function getFailFast()
105   {
106     return $this->failFast;
107   }
108   /**
109    * @param int
110    */
111   public function setFlakyTestAttempts($flakyTestAttempts)
112   {
113     $this->flakyTestAttempts = $flakyTestAttempts;
114   }
115   /**
116    * @return int
117    */
118   public function getFlakyTestAttempts()
119   {
120     return $this->flakyTestAttempts;
121   }
122   /**
123    * @param string
124    */
125   public function setInvalidMatrixDetails($invalidMatrixDetails)
126   {
127     $this->invalidMatrixDetails = $invalidMatrixDetails;
128   }
129   /**
130    * @return string
131    */
132   public function getInvalidMatrixDetails()
133   {
134     return $this->invalidMatrixDetails;
135   }
136   /**
137    * @param string
138    */
139   public function setOutcomeSummary($outcomeSummary)
140   {
141     $this->outcomeSummary = $outcomeSummary;
142   }
143   /**
144    * @return string
145    */
146   public function getOutcomeSummary()
147   {
148     return $this->outcomeSummary;
149   }
150   /**
151    * @param string
152    */
153   public function setProjectId($projectId)
154   {
155     $this->projectId = $projectId;
156   }
157   /**
158    * @return string
159    */
160   public function getProjectId()
161   {
162     return $this->projectId;
163   }
164   /**
165    * @param ResultStorage
166    */
167   public function setResultStorage(ResultStorage $resultStorage)
168   {
169     $this->resultStorage = $resultStorage;
170   }
171   /**
172    * @return ResultStorage
173    */
174   public function getResultStorage()
175   {
176     return $this->resultStorage;
177   }
178   /**
179    * @param string
180    */
181   public function setState($state)
182   {
183     $this->state = $state;
184   }
185   /**
186    * @return string
187    */
188   public function getState()
189   {
190     return $this->state;
191   }
192   /**
193    * @param TestExecution[]
194    */
195   public function setTestExecutions($testExecutions)
196   {
197     $this->testExecutions = $testExecutions;
198   }
199   /**
200    * @return TestExecution[]
201    */
202   public function getTestExecutions()
203   {
204     return $this->testExecutions;
205   }
206   /**
207    * @param string
208    */
209   public function setTestMatrixId($testMatrixId)
210   {
211     $this->testMatrixId = $testMatrixId;
212   }
213   /**
214    * @return string
215    */
216   public function getTestMatrixId()
217   {
218     return $this->testMatrixId;
219   }
220   /**
221    * @param TestSpecification
222    */
223   public function setTestSpecification(TestSpecification $testSpecification)
224   {
225     $this->testSpecification = $testSpecification;
226   }
227   /**
228    * @return TestSpecification
229    */
230   public function getTestSpecification()
231   {
232     return $this->testSpecification;
233   }
234   /**
235    * @param string
236    */
237   public function setTimestamp($timestamp)
238   {
239     $this->timestamp = $timestamp;
240   }
241   /**
242    * @return string
243    */
244   public function getTimestamp()
245   {
246     return $this->timestamp;
247   }
248 }
249 
250 // Adding a class alias for backwards compatibility with the previous class name.
251 class_alias(TestMatrix::class, 'Google_Service_Testing_TestMatrix');
252