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