1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
declare(strict_types=1); |
4
|
|
|
|
5
|
|
|
/* |
6
|
|
|
* This file has been auto generated by Jane, |
7
|
|
|
* |
8
|
|
|
* Do no edit it directly. |
9
|
|
|
*/ |
10
|
|
|
|
11
|
|
|
namespace Montross50\NetsparkerCloud\SDK\Normalizer; |
12
|
|
|
|
13
|
|
|
use Symfony\Component\Serializer\Exception\InvalidArgumentException; |
14
|
|
|
use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; |
15
|
|
|
use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait; |
16
|
|
|
use Symfony\Component\Serializer\Normalizer\DenormalizerInterface; |
17
|
|
|
use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; |
18
|
|
|
use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; |
19
|
|
|
use Symfony\Component\Serializer\Normalizer\NormalizerInterface; |
20
|
|
|
|
21
|
|
|
class ScanTaskModelNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface |
22
|
|
|
{ |
23
|
|
|
use DenormalizerAwareTrait; |
24
|
|
|
use NormalizerAwareTrait; |
25
|
|
|
|
26
|
|
|
public function supportsDenormalization($data, $type, $format = null) |
27
|
|
|
{ |
28
|
|
|
return $type === 'Montross50\\NetsparkerCloud\\SDK\\Model\\ScanTaskModel'; |
29
|
|
|
} |
30
|
|
|
|
31
|
|
|
public function supportsNormalization($data, $format = null) |
32
|
|
|
{ |
33
|
|
|
return $data instanceof \Montross50\NetsparkerCloud\SDK\Model\ScanTaskModel; |
34
|
|
|
} |
35
|
|
|
|
36
|
|
|
public function denormalize($data, $class, $format = null, array $context = []) |
37
|
|
|
{ |
38
|
|
|
if (!is_object($data)) { |
39
|
|
|
throw new InvalidArgumentException(); |
40
|
|
|
} |
41
|
|
|
$object = new \Montross50\NetsparkerCloud\SDK\Model\ScanTaskModel(); |
42
|
|
|
if (property_exists($data, 'AdditionalWebsites')) { |
43
|
|
|
$values = []; |
44
|
|
|
foreach ($data->{'AdditionalWebsites'} as $value) { |
45
|
|
|
$values[] = $this->denormalizer->denormalize($value, 'Montross50\\NetsparkerCloud\\SDK\\Model\\AdditionalWebsiteModel', 'json', $context); |
46
|
|
|
} |
47
|
|
|
$object->setAdditionalWebsites($values); |
48
|
|
|
} |
49
|
|
|
if (property_exists($data, 'AgentId')) { |
50
|
|
|
$object->setAgentId($data->{'AgentId'}); |
51
|
|
|
} |
52
|
|
|
if (property_exists($data, 'AgentName')) { |
53
|
|
|
$object->setAgentName($data->{'AgentName'}); |
54
|
|
|
} |
55
|
|
|
if (property_exists($data, 'Cookies')) { |
56
|
|
|
$object->setCookies($data->{'Cookies'}); |
57
|
|
|
} |
58
|
|
|
if (property_exists($data, 'CrawlAndAttack')) { |
59
|
|
|
$object->setCrawlAndAttack($data->{'CrawlAndAttack'}); |
60
|
|
|
} |
61
|
|
|
if (property_exists($data, 'EnableHeuristicChecksInCustomUrlRewrite')) { |
62
|
|
|
$object->setEnableHeuristicChecksInCustomUrlRewrite($data->{'EnableHeuristicChecksInCustomUrlRewrite'}); |
63
|
|
|
} |
64
|
|
|
if (property_exists($data, 'ExcludedLinks')) { |
65
|
|
|
$object->setExcludedLinks($data->{'ExcludedLinks'}); |
66
|
|
|
} |
67
|
|
|
if (property_exists($data, 'ExcludeLinks')) { |
68
|
|
|
$object->setExcludeLinks($data->{'ExcludeLinks'}); |
69
|
|
|
} |
70
|
|
|
if (property_exists($data, 'DisallowedHttpMethods')) { |
71
|
|
|
$object->setDisallowedHttpMethods($data->{'DisallowedHttpMethods'}); |
72
|
|
|
} |
73
|
|
|
if (property_exists($data, 'FindAndFollowNewLinks')) { |
74
|
|
|
$object->setFindAndFollowNewLinks($data->{'FindAndFollowNewLinks'}); |
75
|
|
|
} |
76
|
|
|
if (property_exists($data, 'ImportedLinks')) { |
77
|
|
|
$object->setImportedLinks($data->{'ImportedLinks'}); |
78
|
|
|
} |
79
|
|
|
if (property_exists($data, 'DesktopScanId')) { |
80
|
|
|
$object->setDesktopScanId($data->{'DesktopScanId'}); |
81
|
|
|
} |
82
|
|
|
if (property_exists($data, 'Initiated')) { |
83
|
|
|
$object->setInitiated($data->{'Initiated'}); |
84
|
|
|
} |
85
|
|
|
if (property_exists($data, 'InitiatedDate')) { |
86
|
|
|
$object->setInitiatedDate($data->{'InitiatedDate'}); |
87
|
|
|
} |
88
|
|
|
if (property_exists($data, 'InitiatedAt')) { |
89
|
|
|
$object->setInitiatedAt(\DateTime::createFromFormat("Y-m-d\TH:i:sP", $data->{'InitiatedAt'})); |
|
|
|
|
90
|
|
|
} |
91
|
|
|
if (property_exists($data, 'MaxDynamicSignatures')) { |
92
|
|
|
$object->setMaxDynamicSignatures($data->{'MaxDynamicSignatures'}); |
93
|
|
|
} |
94
|
|
|
if (property_exists($data, 'MaxScanDuration')) { |
95
|
|
|
$object->setMaxScanDuration($data->{'MaxScanDuration'}); |
96
|
|
|
} |
97
|
|
|
if (property_exists($data, 'PolicyDescription')) { |
98
|
|
|
$object->setPolicyDescription($data->{'PolicyDescription'}); |
99
|
|
|
} |
100
|
|
|
if (property_exists($data, 'PolicyId')) { |
101
|
|
|
$object->setPolicyId($data->{'PolicyId'}); |
102
|
|
|
} |
103
|
|
|
if (property_exists($data, 'PolicyName')) { |
104
|
|
|
$object->setPolicyName($data->{'PolicyName'}); |
105
|
|
|
} |
106
|
|
|
if (property_exists($data, 'ReportPolicyDescription')) { |
107
|
|
|
$object->setReportPolicyDescription($data->{'ReportPolicyDescription'}); |
108
|
|
|
} |
109
|
|
|
if (property_exists($data, 'ReportPolicyId')) { |
110
|
|
|
$object->setReportPolicyId($data->{'ReportPolicyId'}); |
111
|
|
|
} |
112
|
|
|
if (property_exists($data, 'ReportPolicyName')) { |
113
|
|
|
$object->setReportPolicyName($data->{'ReportPolicyName'}); |
114
|
|
|
} |
115
|
|
|
if (property_exists($data, 'Scope')) { |
116
|
|
|
$object->setScope($data->{'Scope'}); |
117
|
|
|
} |
118
|
|
|
if (property_exists($data, 'SubPathMaxDynamicSignatures')) { |
119
|
|
|
$object->setSubPathMaxDynamicSignatures($data->{'SubPathMaxDynamicSignatures'}); |
120
|
|
|
} |
121
|
|
|
if (property_exists($data, 'TargetPath')) { |
122
|
|
|
$object->setTargetPath($data->{'TargetPath'}); |
123
|
|
|
} |
124
|
|
|
if (property_exists($data, 'TargetUrl')) { |
125
|
|
|
$object->setTargetUrl($data->{'TargetUrl'}); |
126
|
|
|
} |
127
|
|
|
if (property_exists($data, 'TargetUrlRoot')) { |
128
|
|
|
$object->setTargetUrlRoot($data->{'TargetUrlRoot'}); |
129
|
|
|
} |
130
|
|
|
if (property_exists($data, 'TimeWindow')) { |
131
|
|
|
$object->setTimeWindow($this->denormalizer->denormalize($data->{'TimeWindow'}, 'Montross50\\NetsparkerCloud\\SDK\\Model\\ScanTimeWindowModel', 'json', $context)); |
132
|
|
|
} |
133
|
|
|
if (property_exists($data, 'TotalVulnerabilityCount')) { |
134
|
|
|
$object->setTotalVulnerabilityCount($data->{'TotalVulnerabilityCount'}); |
135
|
|
|
} |
136
|
|
|
if (property_exists($data, 'UrlRewriteAnalyzableExtensions')) { |
137
|
|
|
$object->setUrlRewriteAnalyzableExtensions($data->{'UrlRewriteAnalyzableExtensions'}); |
138
|
|
|
} |
139
|
|
|
if (property_exists($data, 'UrlRewriteBlockSeparators')) { |
140
|
|
|
$object->setUrlRewriteBlockSeparators($data->{'UrlRewriteBlockSeparators'}); |
141
|
|
|
} |
142
|
|
|
if (property_exists($data, 'UrlRewriteMode')) { |
143
|
|
|
$object->setUrlRewriteMode($data->{'UrlRewriteMode'}); |
144
|
|
|
} |
145
|
|
|
if (property_exists($data, 'UrlRewriteRules')) { |
146
|
|
|
$values_1 = []; |
147
|
|
|
foreach ($data->{'UrlRewriteRules'} as $value_1) { |
148
|
|
|
$values_1[] = $this->denormalizer->denormalize($value_1, 'Montross50\\NetsparkerCloud\\SDK\\Model\\UrlRewriteRuleModel', 'json', $context); |
149
|
|
|
} |
150
|
|
|
$object->setUrlRewriteRules($values_1); |
151
|
|
|
} |
152
|
|
|
if (property_exists($data, 'UserId')) { |
153
|
|
|
$object->setUserId($data->{'UserId'}); |
154
|
|
|
} |
155
|
|
|
if (property_exists($data, 'VcsCommitInfo')) { |
156
|
|
|
$object->setVcsCommitInfo($this->denormalizer->denormalize($data->{'VcsCommitInfo'}, 'Montross50\\NetsparkerCloud\\SDK\\Model\\VcsCommitInfo', 'json', $context)); |
157
|
|
|
} |
158
|
|
|
if (property_exists($data, 'WebsiteName')) { |
159
|
|
|
$object->setWebsiteName($data->{'WebsiteName'}); |
160
|
|
|
} |
161
|
|
|
if (property_exists($data, 'WebsiteUrl')) { |
162
|
|
|
$object->setWebsiteUrl($data->{'WebsiteUrl'}); |
163
|
|
|
} |
164
|
|
|
if (property_exists($data, 'CompletedSteps')) { |
165
|
|
|
$object->setCompletedSteps($data->{'CompletedSteps'}); |
166
|
|
|
} |
167
|
|
|
if (property_exists($data, 'EstimatedLaunchTime')) { |
168
|
|
|
$object->setEstimatedLaunchTime($data->{'EstimatedLaunchTime'}); |
169
|
|
|
} |
170
|
|
|
if (property_exists($data, 'EstimatedSteps')) { |
171
|
|
|
$object->setEstimatedSteps($data->{'EstimatedSteps'}); |
172
|
|
|
} |
173
|
|
|
if (property_exists($data, 'FailureReason')) { |
174
|
|
|
$object->setFailureReason($data->{'FailureReason'}); |
175
|
|
|
} |
176
|
|
|
if (property_exists($data, 'FailureReasonDescription')) { |
177
|
|
|
$object->setFailureReasonDescription($data->{'FailureReasonDescription'}); |
178
|
|
|
} |
179
|
|
|
if (property_exists($data, 'FailureReasonString')) { |
180
|
|
|
$object->setFailureReasonString($data->{'FailureReasonString'}); |
181
|
|
|
} |
182
|
|
|
if (property_exists($data, 'GlobalThreatLevel')) { |
183
|
|
|
$object->setGlobalThreatLevel($data->{'GlobalThreatLevel'}); |
184
|
|
|
} |
185
|
|
|
if (property_exists($data, 'GlobalVulnerabilityCriticalCount')) { |
186
|
|
|
$object->setGlobalVulnerabilityCriticalCount($data->{'GlobalVulnerabilityCriticalCount'}); |
187
|
|
|
} |
188
|
|
|
if (property_exists($data, 'GlobalVulnerabilityHighCount')) { |
189
|
|
|
$object->setGlobalVulnerabilityHighCount($data->{'GlobalVulnerabilityHighCount'}); |
190
|
|
|
} |
191
|
|
|
if (property_exists($data, 'GlobalVulnerabilityInfoCount')) { |
192
|
|
|
$object->setGlobalVulnerabilityInfoCount($data->{'GlobalVulnerabilityInfoCount'}); |
193
|
|
|
} |
194
|
|
|
if (property_exists($data, 'GlobalVulnerabilityLowCount')) { |
195
|
|
|
$object->setGlobalVulnerabilityLowCount($data->{'GlobalVulnerabilityLowCount'}); |
196
|
|
|
} |
197
|
|
|
if (property_exists($data, 'GlobalVulnerabilityMediumCount')) { |
198
|
|
|
$object->setGlobalVulnerabilityMediumCount($data->{'GlobalVulnerabilityMediumCount'}); |
199
|
|
|
} |
200
|
|
|
if (property_exists($data, 'Id')) { |
201
|
|
|
$object->setId($data->{'Id'}); |
202
|
|
|
} |
203
|
|
|
if (property_exists($data, 'IsCompleted')) { |
204
|
|
|
$object->setIsCompleted($data->{'IsCompleted'}); |
205
|
|
|
} |
206
|
|
|
if (property_exists($data, 'Percentage')) { |
207
|
|
|
$object->setPercentage($data->{'Percentage'}); |
208
|
|
|
} |
209
|
|
|
if (property_exists($data, 'Phase')) { |
210
|
|
|
$object->setPhase($data->{'Phase'}); |
211
|
|
|
} |
212
|
|
|
if (property_exists($data, 'ScanTaskGroupId')) { |
213
|
|
|
$object->setScanTaskGroupId($data->{'ScanTaskGroupId'}); |
214
|
|
|
} |
215
|
|
|
if (property_exists($data, 'ScanType')) { |
216
|
|
|
$object->setScanType($data->{'ScanType'}); |
217
|
|
|
} |
218
|
|
|
if (property_exists($data, 'ScheduledScanId')) { |
219
|
|
|
$object->setScheduledScanId($data->{'ScheduledScanId'}); |
220
|
|
|
} |
221
|
|
|
if (property_exists($data, 'State')) { |
222
|
|
|
$object->setState($data->{'State'}); |
223
|
|
|
} |
224
|
|
|
if (property_exists($data, 'StateChanged')) { |
225
|
|
|
$object->setStateChanged(\DateTime::createFromFormat("Y-m-d\TH:i:sP", $data->{'StateChanged'})); |
|
|
|
|
226
|
|
|
} |
227
|
|
|
if (property_exists($data, 'ThreatLevel')) { |
228
|
|
|
$object->setThreatLevel($data->{'ThreatLevel'}); |
229
|
|
|
} |
230
|
|
|
if (property_exists($data, 'VulnerabilityCriticalCount')) { |
231
|
|
|
$object->setVulnerabilityCriticalCount($data->{'VulnerabilityCriticalCount'}); |
232
|
|
|
} |
233
|
|
|
if (property_exists($data, 'VulnerabilityHighCount')) { |
234
|
|
|
$object->setVulnerabilityHighCount($data->{'VulnerabilityHighCount'}); |
235
|
|
|
} |
236
|
|
|
if (property_exists($data, 'VulnerabilityInfoCount')) { |
237
|
|
|
$object->setVulnerabilityInfoCount($data->{'VulnerabilityInfoCount'}); |
238
|
|
|
} |
239
|
|
|
if (property_exists($data, 'VulnerabilityLowCount')) { |
240
|
|
|
$object->setVulnerabilityLowCount($data->{'VulnerabilityLowCount'}); |
241
|
|
|
} |
242
|
|
|
if (property_exists($data, 'VulnerabilityMediumCount')) { |
243
|
|
|
$object->setVulnerabilityMediumCount($data->{'VulnerabilityMediumCount'}); |
244
|
|
|
} |
245
|
|
|
if (property_exists($data, 'WebsiteId')) { |
246
|
|
|
$object->setWebsiteId($data->{'WebsiteId'}); |
247
|
|
|
} |
248
|
|
|
|
249
|
|
|
return $object; |
250
|
|
|
} |
251
|
|
|
|
252
|
|
|
public function normalize($object, $format = null, array $context = []) |
253
|
|
|
{ |
254
|
|
|
$data = new \stdClass(); |
255
|
|
|
if (null !== $object->getAdditionalWebsites()) { |
256
|
|
|
$values = []; |
257
|
|
|
foreach ($object->getAdditionalWebsites() as $value) { |
258
|
|
|
$values[] = $this->normalizer->normalize($value, 'json', $context); |
259
|
|
|
} |
260
|
|
|
$data->{'AdditionalWebsites'} = $values; |
261
|
|
|
} |
262
|
|
|
if (null !== $object->getAgentId()) { |
263
|
|
|
$data->{'AgentId'} = $object->getAgentId(); |
264
|
|
|
} |
265
|
|
|
if (null !== $object->getAgentName()) { |
266
|
|
|
$data->{'AgentName'} = $object->getAgentName(); |
267
|
|
|
} |
268
|
|
|
if (null !== $object->getCookies()) { |
269
|
|
|
$data->{'Cookies'} = $object->getCookies(); |
270
|
|
|
} |
271
|
|
|
if (null !== $object->getCrawlAndAttack()) { |
272
|
|
|
$data->{'CrawlAndAttack'} = $object->getCrawlAndAttack(); |
273
|
|
|
} |
274
|
|
|
if (null !== $object->getEnableHeuristicChecksInCustomUrlRewrite()) { |
275
|
|
|
$data->{'EnableHeuristicChecksInCustomUrlRewrite'} = $object->getEnableHeuristicChecksInCustomUrlRewrite(); |
276
|
|
|
} |
277
|
|
|
if (null !== $object->getExcludedLinks()) { |
278
|
|
|
$data->{'ExcludedLinks'} = $object->getExcludedLinks(); |
279
|
|
|
} |
280
|
|
|
if (null !== $object->getExcludeLinks()) { |
281
|
|
|
$data->{'ExcludeLinks'} = $object->getExcludeLinks(); |
282
|
|
|
} |
283
|
|
|
if (null !== $object->getDisallowedHttpMethods()) { |
284
|
|
|
$data->{'DisallowedHttpMethods'} = $object->getDisallowedHttpMethods(); |
285
|
|
|
} |
286
|
|
|
if (null !== $object->getFindAndFollowNewLinks()) { |
287
|
|
|
$data->{'FindAndFollowNewLinks'} = $object->getFindAndFollowNewLinks(); |
288
|
|
|
} |
289
|
|
|
if (null !== $object->getImportedLinks()) { |
290
|
|
|
$data->{'ImportedLinks'} = $object->getImportedLinks(); |
291
|
|
|
} |
292
|
|
|
if (null !== $object->getDesktopScanId()) { |
293
|
|
|
$data->{'DesktopScanId'} = $object->getDesktopScanId(); |
294
|
|
|
} |
295
|
|
|
if (null !== $object->getInitiated()) { |
296
|
|
|
$data->{'Initiated'} = $object->getInitiated(); |
297
|
|
|
} |
298
|
|
|
if (null !== $object->getInitiatedDate()) { |
299
|
|
|
$data->{'InitiatedDate'} = $object->getInitiatedDate(); |
300
|
|
|
} |
301
|
|
|
if (null !== $object->getInitiatedAt()) { |
302
|
|
|
$data->{'InitiatedAt'} = $object->getInitiatedAt()->format("Y-m-d\TH:i:sP"); |
303
|
|
|
} |
304
|
|
|
if (null !== $object->getMaxDynamicSignatures()) { |
305
|
|
|
$data->{'MaxDynamicSignatures'} = $object->getMaxDynamicSignatures(); |
306
|
|
|
} |
307
|
|
|
if (null !== $object->getMaxScanDuration()) { |
308
|
|
|
$data->{'MaxScanDuration'} = $object->getMaxScanDuration(); |
309
|
|
|
} |
310
|
|
|
if (null !== $object->getPolicyDescription()) { |
311
|
|
|
$data->{'PolicyDescription'} = $object->getPolicyDescription(); |
312
|
|
|
} |
313
|
|
|
if (null !== $object->getPolicyId()) { |
314
|
|
|
$data->{'PolicyId'} = $object->getPolicyId(); |
315
|
|
|
} |
316
|
|
|
if (null !== $object->getPolicyName()) { |
317
|
|
|
$data->{'PolicyName'} = $object->getPolicyName(); |
318
|
|
|
} |
319
|
|
|
if (null !== $object->getReportPolicyDescription()) { |
320
|
|
|
$data->{'ReportPolicyDescription'} = $object->getReportPolicyDescription(); |
321
|
|
|
} |
322
|
|
|
if (null !== $object->getReportPolicyId()) { |
323
|
|
|
$data->{'ReportPolicyId'} = $object->getReportPolicyId(); |
324
|
|
|
} |
325
|
|
|
if (null !== $object->getReportPolicyName()) { |
326
|
|
|
$data->{'ReportPolicyName'} = $object->getReportPolicyName(); |
327
|
|
|
} |
328
|
|
|
if (null !== $object->getScope()) { |
329
|
|
|
$data->{'Scope'} = $object->getScope(); |
330
|
|
|
} |
331
|
|
|
if (null !== $object->getSubPathMaxDynamicSignatures()) { |
332
|
|
|
$data->{'SubPathMaxDynamicSignatures'} = $object->getSubPathMaxDynamicSignatures(); |
333
|
|
|
} |
334
|
|
|
if (null !== $object->getTargetPath()) { |
335
|
|
|
$data->{'TargetPath'} = $object->getTargetPath(); |
336
|
|
|
} |
337
|
|
|
if (null !== $object->getTargetUrl()) { |
338
|
|
|
$data->{'TargetUrl'} = $object->getTargetUrl(); |
339
|
|
|
} |
340
|
|
|
if (null !== $object->getTargetUrlRoot()) { |
341
|
|
|
$data->{'TargetUrlRoot'} = $object->getTargetUrlRoot(); |
342
|
|
|
} |
343
|
|
|
if (null !== $object->getTimeWindow()) { |
344
|
|
|
$data->{'TimeWindow'} = $this->normalizer->normalize($object->getTimeWindow(), 'json', $context); |
345
|
|
|
} |
346
|
|
|
if (null !== $object->getTotalVulnerabilityCount()) { |
347
|
|
|
$data->{'TotalVulnerabilityCount'} = $object->getTotalVulnerabilityCount(); |
348
|
|
|
} |
349
|
|
|
if (null !== $object->getUrlRewriteAnalyzableExtensions()) { |
350
|
|
|
$data->{'UrlRewriteAnalyzableExtensions'} = $object->getUrlRewriteAnalyzableExtensions(); |
351
|
|
|
} |
352
|
|
|
if (null !== $object->getUrlRewriteBlockSeparators()) { |
353
|
|
|
$data->{'UrlRewriteBlockSeparators'} = $object->getUrlRewriteBlockSeparators(); |
354
|
|
|
} |
355
|
|
|
if (null !== $object->getUrlRewriteMode()) { |
356
|
|
|
$data->{'UrlRewriteMode'} = $object->getUrlRewriteMode(); |
357
|
|
|
} |
358
|
|
|
if (null !== $object->getUrlRewriteRules()) { |
359
|
|
|
$values_1 = []; |
360
|
|
|
foreach ($object->getUrlRewriteRules() as $value_1) { |
361
|
|
|
$values_1[] = $this->normalizer->normalize($value_1, 'json', $context); |
362
|
|
|
} |
363
|
|
|
$data->{'UrlRewriteRules'} = $values_1; |
364
|
|
|
} |
365
|
|
|
if (null !== $object->getUserId()) { |
366
|
|
|
$data->{'UserId'} = $object->getUserId(); |
367
|
|
|
} |
368
|
|
|
if (null !== $object->getVcsCommitInfo()) { |
369
|
|
|
$data->{'VcsCommitInfo'} = $this->normalizer->normalize($object->getVcsCommitInfo(), 'json', $context); |
370
|
|
|
} |
371
|
|
|
if (null !== $object->getWebsiteName()) { |
372
|
|
|
$data->{'WebsiteName'} = $object->getWebsiteName(); |
373
|
|
|
} |
374
|
|
|
if (null !== $object->getWebsiteUrl()) { |
375
|
|
|
$data->{'WebsiteUrl'} = $object->getWebsiteUrl(); |
376
|
|
|
} |
377
|
|
|
if (null !== $object->getCompletedSteps()) { |
378
|
|
|
$data->{'CompletedSteps'} = $object->getCompletedSteps(); |
379
|
|
|
} |
380
|
|
|
if (null !== $object->getEstimatedLaunchTime()) { |
381
|
|
|
$data->{'EstimatedLaunchTime'} = $object->getEstimatedLaunchTime(); |
382
|
|
|
} |
383
|
|
|
if (null !== $object->getEstimatedSteps()) { |
384
|
|
|
$data->{'EstimatedSteps'} = $object->getEstimatedSteps(); |
385
|
|
|
} |
386
|
|
|
if (null !== $object->getFailureReason()) { |
387
|
|
|
$data->{'FailureReason'} = $object->getFailureReason(); |
388
|
|
|
} |
389
|
|
|
if (null !== $object->getFailureReasonDescription()) { |
390
|
|
|
$data->{'FailureReasonDescription'} = $object->getFailureReasonDescription(); |
391
|
|
|
} |
392
|
|
|
if (null !== $object->getFailureReasonString()) { |
393
|
|
|
$data->{'FailureReasonString'} = $object->getFailureReasonString(); |
394
|
|
|
} |
395
|
|
|
if (null !== $object->getGlobalThreatLevel()) { |
396
|
|
|
$data->{'GlobalThreatLevel'} = $object->getGlobalThreatLevel(); |
397
|
|
|
} |
398
|
|
|
if (null !== $object->getGlobalVulnerabilityCriticalCount()) { |
399
|
|
|
$data->{'GlobalVulnerabilityCriticalCount'} = $object->getGlobalVulnerabilityCriticalCount(); |
400
|
|
|
} |
401
|
|
|
if (null !== $object->getGlobalVulnerabilityHighCount()) { |
402
|
|
|
$data->{'GlobalVulnerabilityHighCount'} = $object->getGlobalVulnerabilityHighCount(); |
403
|
|
|
} |
404
|
|
|
if (null !== $object->getGlobalVulnerabilityInfoCount()) { |
405
|
|
|
$data->{'GlobalVulnerabilityInfoCount'} = $object->getGlobalVulnerabilityInfoCount(); |
406
|
|
|
} |
407
|
|
|
if (null !== $object->getGlobalVulnerabilityLowCount()) { |
408
|
|
|
$data->{'GlobalVulnerabilityLowCount'} = $object->getGlobalVulnerabilityLowCount(); |
409
|
|
|
} |
410
|
|
|
if (null !== $object->getGlobalVulnerabilityMediumCount()) { |
411
|
|
|
$data->{'GlobalVulnerabilityMediumCount'} = $object->getGlobalVulnerabilityMediumCount(); |
412
|
|
|
} |
413
|
|
|
if (null !== $object->getId()) { |
414
|
|
|
$data->{'Id'} = $object->getId(); |
415
|
|
|
} |
416
|
|
|
if (null !== $object->getIsCompleted()) { |
417
|
|
|
$data->{'IsCompleted'} = $object->getIsCompleted(); |
418
|
|
|
} |
419
|
|
|
if (null !== $object->getPercentage()) { |
420
|
|
|
$data->{'Percentage'} = $object->getPercentage(); |
421
|
|
|
} |
422
|
|
|
if (null !== $object->getPhase()) { |
423
|
|
|
$data->{'Phase'} = $object->getPhase(); |
424
|
|
|
} |
425
|
|
|
if (null !== $object->getScanTaskGroupId()) { |
426
|
|
|
$data->{'ScanTaskGroupId'} = $object->getScanTaskGroupId(); |
427
|
|
|
} |
428
|
|
|
if (null !== $object->getScanType()) { |
429
|
|
|
$data->{'ScanType'} = $object->getScanType(); |
430
|
|
|
} |
431
|
|
|
if (null !== $object->getScheduledScanId()) { |
432
|
|
|
$data->{'ScheduledScanId'} = $object->getScheduledScanId(); |
433
|
|
|
} |
434
|
|
|
if (null !== $object->getState()) { |
435
|
|
|
$data->{'State'} = $object->getState(); |
436
|
|
|
} |
437
|
|
|
if (null !== $object->getStateChanged()) { |
438
|
|
|
$data->{'StateChanged'} = $object->getStateChanged()->format("Y-m-d\TH:i:sP"); |
439
|
|
|
} |
440
|
|
|
if (null !== $object->getThreatLevel()) { |
441
|
|
|
$data->{'ThreatLevel'} = $object->getThreatLevel(); |
442
|
|
|
} |
443
|
|
|
if (null !== $object->getVulnerabilityCriticalCount()) { |
444
|
|
|
$data->{'VulnerabilityCriticalCount'} = $object->getVulnerabilityCriticalCount(); |
445
|
|
|
} |
446
|
|
|
if (null !== $object->getVulnerabilityHighCount()) { |
447
|
|
|
$data->{'VulnerabilityHighCount'} = $object->getVulnerabilityHighCount(); |
448
|
|
|
} |
449
|
|
|
if (null !== $object->getVulnerabilityInfoCount()) { |
450
|
|
|
$data->{'VulnerabilityInfoCount'} = $object->getVulnerabilityInfoCount(); |
451
|
|
|
} |
452
|
|
|
if (null !== $object->getVulnerabilityLowCount()) { |
453
|
|
|
$data->{'VulnerabilityLowCount'} = $object->getVulnerabilityLowCount(); |
454
|
|
|
} |
455
|
|
|
if (null !== $object->getVulnerabilityMediumCount()) { |
456
|
|
|
$data->{'VulnerabilityMediumCount'} = $object->getVulnerabilityMediumCount(); |
457
|
|
|
} |
458
|
|
|
if (null !== $object->getWebsiteId()) { |
459
|
|
|
$data->{'WebsiteId'} = $object->getWebsiteId(); |
460
|
|
|
} |
461
|
|
|
|
462
|
|
|
return $data; |
463
|
|
|
} |
464
|
|
|
} |
465
|
|
|
|