Total Complexity | 132 |
Total Lines | 1984 |
Duplicated Lines | 0 % |
Changes | 0 |
Complex classes like ScanTaskModel often do a lot of different things. To break such a class down, we need to identify a cohesive component within that class. A common approach to find such a component is to look for fields/methods that share the same prefixes, or suffixes.
Once you have determined the fields that belong together, you can apply the Extract Class refactoring. If the component makes sense as a sub-class, Extract Subclass is also a candidate, and is often faster.
While breaking up the class, it is a good idea to analyze how other classes use ScanTaskModel, and based on these observations, apply Extract Interface, too.
1 | <?php |
||
13 | class ScanTaskModel |
||
14 | { |
||
15 | /** |
||
16 | * Gets or sets the additional websites to scan. |
||
17 | * |
||
18 | * @var AdditionalWebsiteModel[] |
||
19 | */ |
||
20 | protected $additionalWebsites; |
||
21 | /** |
||
22 | * Gets or sets the agent id. |
||
23 | * |
||
24 | * @var string |
||
25 | */ |
||
26 | protected $agentId; |
||
27 | /** |
||
28 | * Gets or sets the agent name. |
||
29 | * |
||
30 | * @var string |
||
31 | */ |
||
32 | protected $agentName; |
||
33 | /** |
||
34 | * Gets or sets the cookies. |
||
35 | * |
||
36 | * @var string |
||
37 | */ |
||
38 | protected $cookies; |
||
39 | /** |
||
40 | * Gets or sets a value indicating whether parallel attacker is enabled. |
||
41 | * |
||
42 | * @var bool |
||
43 | */ |
||
44 | protected $crawlAndAttack; |
||
45 | /** |
||
46 | * Gets or sets a value indicating whether Heuristic URL Rewrite support is enabled together with custom URL Rewrite. |
||
47 | support. |
||
48 | * |
||
49 | * @var bool |
||
50 | */ |
||
51 | protected $enableHeuristicChecksInCustomUrlRewrite; |
||
52 | /** |
||
53 | * Gets or sets the excluded links. |
||
54 | * |
||
55 | * @var string |
||
56 | */ |
||
57 | protected $excludedLinks; |
||
58 | /** |
||
59 | * Gets or sets a value indicating whether links should be excluded/included. |
||
60 | * |
||
61 | * @var bool |
||
62 | */ |
||
63 | protected $excludeLinks; |
||
64 | /** |
||
65 | * Gets or sets the disallowed HTTP methods. |
||
66 | * |
||
67 | * @var string |
||
68 | */ |
||
69 | protected $disallowedHttpMethods; |
||
70 | /** |
||
71 | * Gets or sets a value indicating whether automatic crawling is enabled. |
||
72 | * |
||
73 | * @var bool |
||
74 | */ |
||
75 | protected $findAndFollowNewLinks; |
||
76 | /** |
||
77 | * Gets or sets the imported links. |
||
78 | * |
||
79 | * @var string |
||
80 | */ |
||
81 | protected $importedLinks; |
||
82 | /** |
||
83 | * Gets the desktop scan identifier. |
||
84 | * |
||
85 | * @var string |
||
86 | */ |
||
87 | protected $desktopScanId; |
||
88 | /** |
||
89 | * Gets or sets initiated date in user's preferred format. |
||
90 | * |
||
91 | * @var string |
||
92 | */ |
||
93 | protected $initiated; |
||
94 | /** |
||
95 | * Gets or sets the initiated date in user's preferred format. |
||
96 | * |
||
97 | * @var string |
||
98 | */ |
||
99 | protected $initiatedDate; |
||
100 | /** |
||
101 | * Gets or sets the initiated date. |
||
102 | * |
||
103 | * @var \DateTime |
||
104 | */ |
||
105 | protected $initiatedAt; |
||
106 | /** |
||
107 | * Gets or sets the root path maximum dynamic signatures for heuristic URL Rewrite detection. |
||
108 | * |
||
109 | * @var int |
||
110 | */ |
||
111 | protected $maxDynamicSignatures; |
||
112 | /** |
||
113 | * Gets or sets the maximum duration of the scan in hours. |
||
114 | * |
||
115 | * @var int |
||
116 | */ |
||
117 | protected $maxScanDuration; |
||
118 | /** |
||
119 | * Gets or sets the description of the policy. |
||
120 | * |
||
121 | * @var string |
||
122 | */ |
||
123 | protected $policyDescription; |
||
124 | /** |
||
125 | * Gets or sets the foreign key reference to the related {N:Netsparker.Cloud.Infrastructure.Models.Policy} instance. |
||
126 | * |
||
127 | * @var string |
||
128 | */ |
||
129 | protected $policyId; |
||
130 | /** |
||
131 | * Gets or sets the name of the policy. |
||
132 | * |
||
133 | * @var string |
||
134 | */ |
||
135 | protected $policyName; |
||
136 | /** |
||
137 | * Gets or sets the description of the report policy. |
||
138 | * |
||
139 | * @var string |
||
140 | */ |
||
141 | protected $reportPolicyDescription; |
||
142 | /** |
||
143 | * Gets or sets the foreign key reference to the related {Netsparker.Cloud.Core.Models.ReportPolicySetting} instance. |
||
144 | * |
||
145 | * @var string |
||
146 | */ |
||
147 | protected $reportPolicyId; |
||
148 | /** |
||
149 | * Gets or sets the name of the report policy. |
||
150 | * |
||
151 | * @var string |
||
152 | */ |
||
153 | protected $reportPolicyName; |
||
154 | /** |
||
155 | * Gets or sets the scan scope. |
||
156 | * |
||
157 | * @var string |
||
158 | */ |
||
159 | protected $scope; |
||
160 | /** |
||
161 | * Gets or sets the sub path maximum dynamic signatures for heuristic URL Rewrite detection. |
||
162 | * |
||
163 | * @var int |
||
164 | */ |
||
165 | protected $subPathMaxDynamicSignatures; |
||
166 | /** |
||
167 | * Gets or sets target path. |
||
168 | * |
||
169 | * @var string |
||
170 | */ |
||
171 | protected $targetPath; |
||
172 | /** |
||
173 | * Gets or sets TargetUrl. |
||
174 | * |
||
175 | * @var string |
||
176 | */ |
||
177 | protected $targetUrl; |
||
178 | /** |
||
179 | * Gets or sets the target URL root. |
||
180 | * |
||
181 | * @var string |
||
182 | */ |
||
183 | protected $targetUrlRoot; |
||
184 | /** |
||
185 | * Represents a model for carrying out scan time window settings. |
||
186 | * |
||
187 | * @var ScanTimeWindowModel |
||
188 | */ |
||
189 | protected $timeWindow; |
||
190 | /** |
||
191 | * Gets or sets the total vulnerability count without information vulnerabilities. |
||
192 | * |
||
193 | * @var int |
||
194 | */ |
||
195 | protected $totalVulnerabilityCount; |
||
196 | /** |
||
197 | * Gets or sets the extensions that will be analyzed for heuristic URL Rewrite detection. |
||
198 | * |
||
199 | * @var string |
||
200 | */ |
||
201 | protected $urlRewriteAnalyzableExtensions; |
||
202 | /** |
||
203 | * Gets or sets the block separators for heuristic URL Rewrite detection. |
||
204 | * |
||
205 | * @var string |
||
206 | */ |
||
207 | protected $urlRewriteBlockSeparators; |
||
208 | /** |
||
209 | * Gets or sets the URL Rewrite mode. |
||
210 | * |
||
211 | * @var string |
||
212 | */ |
||
213 | protected $urlRewriteMode; |
||
214 | /** |
||
215 | * Gets or sets the URL Rewrite rules. |
||
216 | * |
||
217 | * @var UrlRewriteRuleModel[] |
||
218 | */ |
||
219 | protected $urlRewriteRules; |
||
220 | /** |
||
221 | * Gets or sets the user identifier. |
||
222 | * |
||
223 | * @var string |
||
224 | */ |
||
225 | protected $userId; |
||
226 | /** |
||
227 | * Represents optional commit info comes from Netsparker continuous integration plugins. |
||
228 | * |
||
229 | * @var VcsCommitInfo |
||
230 | */ |
||
231 | protected $vcsCommitInfo; |
||
232 | /** |
||
233 | * Gets or sets the name of the website. |
||
234 | * |
||
235 | * @var string |
||
236 | */ |
||
237 | protected $websiteName; |
||
238 | /** |
||
239 | * Gets or sets the website URL. |
||
240 | * |
||
241 | * @var string |
||
242 | */ |
||
243 | protected $websiteUrl; |
||
244 | /** |
||
245 | * Gets or sets the number of steps (HTTP requests) completed thus far. |
||
246 | * |
||
247 | * @var int |
||
248 | */ |
||
249 | protected $completedSteps; |
||
250 | /** |
||
251 | * Gets or sets the estimated launch time in minutes for queued scans. |
||
252 | * |
||
253 | * @var int |
||
254 | */ |
||
255 | protected $estimatedLaunchTime; |
||
256 | /** |
||
257 | * Gets or sets the estimated total number of steps (HTTP requests) that this scan will undertake. |
||
258 | * |
||
259 | * @var int |
||
260 | */ |
||
261 | protected $estimatedSteps; |
||
262 | /** |
||
263 | * Gets or sets FailureReason. |
||
264 | * |
||
265 | * @var string |
||
266 | */ |
||
267 | protected $failureReason; |
||
268 | /** |
||
269 | * Gets the failure reason description. |
||
270 | * |
||
271 | * @var string |
||
272 | */ |
||
273 | protected $failureReasonDescription; |
||
274 | /** |
||
275 | * Gets the failure reason string. |
||
276 | * |
||
277 | * @var string |
||
278 | */ |
||
279 | protected $failureReasonString; |
||
280 | /** |
||
281 | * Gets or sets the global threat level. |
||
282 | * |
||
283 | * @var string |
||
284 | */ |
||
285 | protected $globalThreatLevel; |
||
286 | /** |
||
287 | * Gets the global vulnerability critical count. |
||
288 | * |
||
289 | * @var int |
||
290 | */ |
||
291 | protected $globalVulnerabilityCriticalCount; |
||
292 | /** |
||
293 | * Gets the global vulnerability high count. |
||
294 | * |
||
295 | * @var int |
||
296 | */ |
||
297 | protected $globalVulnerabilityHighCount; |
||
298 | /** |
||
299 | * Gets the global vulnerability information count. |
||
300 | * |
||
301 | * @var int |
||
302 | */ |
||
303 | protected $globalVulnerabilityInfoCount; |
||
304 | /** |
||
305 | * Gets the global vulnerability low count. |
||
306 | * |
||
307 | * @var int |
||
308 | */ |
||
309 | protected $globalVulnerabilityLowCount; |
||
310 | /** |
||
311 | * Gets the global vulnerability medium count. |
||
312 | * |
||
313 | * @var int |
||
314 | */ |
||
315 | protected $globalVulnerabilityMediumCount; |
||
316 | /** |
||
317 | * Gets or sets Id. |
||
318 | * |
||
319 | * @var string |
||
320 | */ |
||
321 | protected $id; |
||
322 | /** |
||
323 | * Gets a value indicating whether scan is completed with any state. |
||
324 | * |
||
325 | * @var bool |
||
326 | */ |
||
327 | protected $isCompleted; |
||
328 | /** |
||
329 | * Gets the completed percentage. |
||
330 | * |
||
331 | * @var int |
||
332 | */ |
||
333 | protected $percentage; |
||
334 | /** |
||
335 | * Gets or sets the Phase. |
||
336 | * |
||
337 | * @var string |
||
338 | */ |
||
339 | protected $phase; |
||
340 | /** |
||
341 | * Gets or sets the scan group identifier. |
||
342 | * |
||
343 | * @var string |
||
344 | */ |
||
345 | protected $scanTaskGroupId; |
||
346 | /** |
||
347 | * Gets or sets the type of the scan. |
||
348 | * |
||
349 | * @var string |
||
350 | */ |
||
351 | protected $scanType; |
||
352 | /** |
||
353 | * Gets or sets the scheduled scan identifier. |
||
354 | * |
||
355 | * @var string |
||
356 | */ |
||
357 | protected $scheduledScanId; |
||
358 | /** |
||
359 | * Gets or sets State. |
||
360 | * |
||
361 | * @var string |
||
362 | */ |
||
363 | protected $state; |
||
364 | /** |
||
365 | * Gets or sets the date and time at which this task state was last changed. |
||
366 | * |
||
367 | * @var \DateTime |
||
368 | */ |
||
369 | protected $stateChanged; |
||
370 | /** |
||
371 | * Gets or sets the threat level. |
||
372 | * |
||
373 | * @var string |
||
374 | */ |
||
375 | protected $threatLevel; |
||
376 | /** |
||
377 | * Gets or sets the count of vulnerabilities with critical level severity. |
||
378 | * |
||
379 | * @var int |
||
380 | */ |
||
381 | protected $vulnerabilityCriticalCount; |
||
382 | /** |
||
383 | * Gets or sets the count of vulnerabilities with high level severity. |
||
384 | * |
||
385 | * @var int |
||
386 | */ |
||
387 | protected $vulnerabilityHighCount; |
||
388 | /** |
||
389 | * Gets or sets the count of vulnerabilities with information level severity. |
||
390 | * |
||
391 | * @var int |
||
392 | */ |
||
393 | protected $vulnerabilityInfoCount; |
||
394 | /** |
||
395 | * Gets or sets the count of vulnerabilities with low level severity. |
||
396 | * |
||
397 | * @var int |
||
398 | */ |
||
399 | protected $vulnerabilityLowCount; |
||
400 | /** |
||
401 | * Gets or sets the count of vulnerabilities with medium level severity. |
||
402 | * |
||
403 | * @var int |
||
404 | */ |
||
405 | protected $vulnerabilityMediumCount; |
||
406 | /** |
||
407 | * Gets the website identifier. |
||
408 | * |
||
409 | * @var string |
||
410 | */ |
||
411 | protected $websiteId; |
||
412 | |||
413 | /** |
||
414 | * Gets or sets the additional websites to scan. |
||
415 | * |
||
416 | * @return AdditionalWebsiteModel[] |
||
417 | */ |
||
418 | public function getAdditionalWebsites(): ?array |
||
419 | { |
||
420 | return $this->additionalWebsites; |
||
421 | } |
||
422 | |||
423 | /** |
||
424 | * Gets or sets the additional websites to scan. |
||
425 | * |
||
426 | * @param AdditionalWebsiteModel[] $additionalWebsites |
||
427 | * |
||
428 | * @return self |
||
429 | */ |
||
430 | public function setAdditionalWebsites(?array $additionalWebsites): self |
||
431 | { |
||
432 | $this->additionalWebsites = $additionalWebsites; |
||
433 | |||
434 | return $this; |
||
435 | } |
||
436 | |||
437 | /** |
||
438 | * Gets or sets the agent id. |
||
439 | * |
||
440 | * @return string |
||
441 | */ |
||
442 | public function getAgentId(): ?string |
||
443 | { |
||
444 | return $this->agentId; |
||
445 | } |
||
446 | |||
447 | /** |
||
448 | * Gets or sets the agent id. |
||
449 | * |
||
450 | * @param string $agentId |
||
451 | * |
||
452 | * @return self |
||
453 | */ |
||
454 | public function setAgentId(?string $agentId): self |
||
455 | { |
||
456 | $this->agentId = $agentId; |
||
457 | |||
458 | return $this; |
||
459 | } |
||
460 | |||
461 | /** |
||
462 | * Gets or sets the agent name. |
||
463 | * |
||
464 | * @return string |
||
465 | */ |
||
466 | public function getAgentName(): ?string |
||
467 | { |
||
468 | return $this->agentName; |
||
469 | } |
||
470 | |||
471 | /** |
||
472 | * Gets or sets the agent name. |
||
473 | * |
||
474 | * @param string $agentName |
||
475 | * |
||
476 | * @return self |
||
477 | */ |
||
478 | public function setAgentName(?string $agentName): self |
||
479 | { |
||
480 | $this->agentName = $agentName; |
||
481 | |||
482 | return $this; |
||
483 | } |
||
484 | |||
485 | /** |
||
486 | * Gets or sets the cookies. |
||
487 | * |
||
488 | * @return string |
||
489 | */ |
||
490 | public function getCookies(): ?string |
||
491 | { |
||
492 | return $this->cookies; |
||
493 | } |
||
494 | |||
495 | /** |
||
496 | * Gets or sets the cookies. |
||
497 | * |
||
498 | * @param string $cookies |
||
499 | * |
||
500 | * @return self |
||
501 | */ |
||
502 | public function setCookies(?string $cookies): self |
||
503 | { |
||
504 | $this->cookies = $cookies; |
||
505 | |||
506 | return $this; |
||
507 | } |
||
508 | |||
509 | /** |
||
510 | * Gets or sets a value indicating whether parallel attacker is enabled. |
||
511 | * |
||
512 | * @return bool |
||
513 | */ |
||
514 | public function getCrawlAndAttack(): ?bool |
||
515 | { |
||
516 | return $this->crawlAndAttack; |
||
517 | } |
||
518 | |||
519 | /** |
||
520 | * Gets or sets a value indicating whether parallel attacker is enabled. |
||
521 | * |
||
522 | * @param bool $crawlAndAttack |
||
523 | * |
||
524 | * @return self |
||
525 | */ |
||
526 | public function setCrawlAndAttack(?bool $crawlAndAttack): self |
||
527 | { |
||
528 | $this->crawlAndAttack = $crawlAndAttack; |
||
529 | |||
530 | return $this; |
||
531 | } |
||
532 | |||
533 | /** |
||
534 | * Gets or sets a value indicating whether Heuristic URL Rewrite support is enabled together with custom URL Rewrite. |
||
535 | support. |
||
536 | * |
||
537 | * @return bool |
||
538 | */ |
||
539 | public function getEnableHeuristicChecksInCustomUrlRewrite(): ?bool |
||
540 | { |
||
541 | return $this->enableHeuristicChecksInCustomUrlRewrite; |
||
542 | } |
||
543 | |||
544 | /** |
||
545 | * Gets or sets a value indicating whether Heuristic URL Rewrite support is enabled together with custom URL Rewrite. |
||
546 | support. |
||
547 | * |
||
548 | * @param bool $enableHeuristicChecksInCustomUrlRewrite |
||
549 | * |
||
550 | * @return self |
||
551 | */ |
||
552 | public function setEnableHeuristicChecksInCustomUrlRewrite(?bool $enableHeuristicChecksInCustomUrlRewrite): self |
||
553 | { |
||
554 | $this->enableHeuristicChecksInCustomUrlRewrite = $enableHeuristicChecksInCustomUrlRewrite; |
||
555 | |||
556 | return $this; |
||
557 | } |
||
558 | |||
559 | /** |
||
560 | * Gets or sets the excluded links. |
||
561 | * |
||
562 | * @return string |
||
563 | */ |
||
564 | public function getExcludedLinks(): ?string |
||
565 | { |
||
566 | return $this->excludedLinks; |
||
567 | } |
||
568 | |||
569 | /** |
||
570 | * Gets or sets the excluded links. |
||
571 | * |
||
572 | * @param string $excludedLinks |
||
573 | * |
||
574 | * @return self |
||
575 | */ |
||
576 | public function setExcludedLinks(?string $excludedLinks): self |
||
577 | { |
||
578 | $this->excludedLinks = $excludedLinks; |
||
579 | |||
580 | return $this; |
||
581 | } |
||
582 | |||
583 | /** |
||
584 | * Gets or sets a value indicating whether links should be excluded/included. |
||
585 | * |
||
586 | * @return bool |
||
587 | */ |
||
588 | public function getExcludeLinks(): ?bool |
||
589 | { |
||
590 | return $this->excludeLinks; |
||
591 | } |
||
592 | |||
593 | /** |
||
594 | * Gets or sets a value indicating whether links should be excluded/included. |
||
595 | * |
||
596 | * @param bool $excludeLinks |
||
597 | * |
||
598 | * @return self |
||
599 | */ |
||
600 | public function setExcludeLinks(?bool $excludeLinks): self |
||
601 | { |
||
602 | $this->excludeLinks = $excludeLinks; |
||
603 | |||
604 | return $this; |
||
605 | } |
||
606 | |||
607 | /** |
||
608 | * Gets or sets the disallowed HTTP methods. |
||
609 | * |
||
610 | * @return string |
||
611 | */ |
||
612 | public function getDisallowedHttpMethods(): ?string |
||
613 | { |
||
614 | return $this->disallowedHttpMethods; |
||
615 | } |
||
616 | |||
617 | /** |
||
618 | * Gets or sets the disallowed HTTP methods. |
||
619 | * |
||
620 | * @param string $disallowedHttpMethods |
||
621 | * |
||
622 | * @return self |
||
623 | */ |
||
624 | public function setDisallowedHttpMethods(?string $disallowedHttpMethods): self |
||
625 | { |
||
626 | $this->disallowedHttpMethods = $disallowedHttpMethods; |
||
627 | |||
628 | return $this; |
||
629 | } |
||
630 | |||
631 | /** |
||
632 | * Gets or sets a value indicating whether automatic crawling is enabled. |
||
633 | * |
||
634 | * @return bool |
||
635 | */ |
||
636 | public function getFindAndFollowNewLinks(): ?bool |
||
637 | { |
||
638 | return $this->findAndFollowNewLinks; |
||
639 | } |
||
640 | |||
641 | /** |
||
642 | * Gets or sets a value indicating whether automatic crawling is enabled. |
||
643 | * |
||
644 | * @param bool $findAndFollowNewLinks |
||
645 | * |
||
646 | * @return self |
||
647 | */ |
||
648 | public function setFindAndFollowNewLinks(?bool $findAndFollowNewLinks): self |
||
649 | { |
||
650 | $this->findAndFollowNewLinks = $findAndFollowNewLinks; |
||
651 | |||
652 | return $this; |
||
653 | } |
||
654 | |||
655 | /** |
||
656 | * Gets or sets the imported links. |
||
657 | * |
||
658 | * @return string |
||
659 | */ |
||
660 | public function getImportedLinks(): ?string |
||
661 | { |
||
662 | return $this->importedLinks; |
||
663 | } |
||
664 | |||
665 | /** |
||
666 | * Gets or sets the imported links. |
||
667 | * |
||
668 | * @param string $importedLinks |
||
669 | * |
||
670 | * @return self |
||
671 | */ |
||
672 | public function setImportedLinks(?string $importedLinks): self |
||
673 | { |
||
674 | $this->importedLinks = $importedLinks; |
||
675 | |||
676 | return $this; |
||
677 | } |
||
678 | |||
679 | /** |
||
680 | * Gets the desktop scan identifier. |
||
681 | * |
||
682 | * @return string |
||
683 | */ |
||
684 | public function getDesktopScanId(): ?string |
||
685 | { |
||
686 | return $this->desktopScanId; |
||
687 | } |
||
688 | |||
689 | /** |
||
690 | * Gets the desktop scan identifier. |
||
691 | * |
||
692 | * @param string $desktopScanId |
||
693 | * |
||
694 | * @return self |
||
695 | */ |
||
696 | public function setDesktopScanId(?string $desktopScanId): self |
||
697 | { |
||
698 | $this->desktopScanId = $desktopScanId; |
||
699 | |||
700 | return $this; |
||
701 | } |
||
702 | |||
703 | /** |
||
704 | * Gets or sets initiated date in user's preferred format. |
||
705 | * |
||
706 | * @return string |
||
707 | */ |
||
708 | public function getInitiated(): ?string |
||
709 | { |
||
710 | return $this->initiated; |
||
711 | } |
||
712 | |||
713 | /** |
||
714 | * Gets or sets initiated date in user's preferred format. |
||
715 | * |
||
716 | * @param string $initiated |
||
717 | * |
||
718 | * @return self |
||
719 | */ |
||
720 | public function setInitiated(?string $initiated): self |
||
721 | { |
||
722 | $this->initiated = $initiated; |
||
723 | |||
724 | return $this; |
||
725 | } |
||
726 | |||
727 | /** |
||
728 | * Gets or sets the initiated date in user's preferred format. |
||
729 | * |
||
730 | * @return string |
||
731 | */ |
||
732 | public function getInitiatedDate(): ?string |
||
733 | { |
||
734 | return $this->initiatedDate; |
||
735 | } |
||
736 | |||
737 | /** |
||
738 | * Gets or sets the initiated date in user's preferred format. |
||
739 | * |
||
740 | * @param string $initiatedDate |
||
741 | * |
||
742 | * @return self |
||
743 | */ |
||
744 | public function setInitiatedDate(?string $initiatedDate): self |
||
745 | { |
||
746 | $this->initiatedDate = $initiatedDate; |
||
747 | |||
748 | return $this; |
||
749 | } |
||
750 | |||
751 | /** |
||
752 | * Gets or sets the initiated date. |
||
753 | * |
||
754 | * @return \DateTime |
||
755 | */ |
||
756 | public function getInitiatedAt(): ?\DateTime |
||
757 | { |
||
758 | return $this->initiatedAt; |
||
759 | } |
||
760 | |||
761 | /** |
||
762 | * Gets or sets the initiated date. |
||
763 | * |
||
764 | * @param \DateTime $initiatedAt |
||
765 | * |
||
766 | * @return self |
||
767 | */ |
||
768 | public function setInitiatedAt(?\DateTime $initiatedAt): self |
||
769 | { |
||
770 | $this->initiatedAt = $initiatedAt; |
||
771 | |||
772 | return $this; |
||
773 | } |
||
774 | |||
775 | /** |
||
776 | * Gets or sets the root path maximum dynamic signatures for heuristic URL Rewrite detection. |
||
777 | * |
||
778 | * @return int |
||
779 | */ |
||
780 | public function getMaxDynamicSignatures(): ?int |
||
781 | { |
||
782 | return $this->maxDynamicSignatures; |
||
783 | } |
||
784 | |||
785 | /** |
||
786 | * Gets or sets the root path maximum dynamic signatures for heuristic URL Rewrite detection. |
||
787 | * |
||
788 | * @param int $maxDynamicSignatures |
||
789 | * |
||
790 | * @return self |
||
791 | */ |
||
792 | public function setMaxDynamicSignatures(?int $maxDynamicSignatures): self |
||
793 | { |
||
794 | $this->maxDynamicSignatures = $maxDynamicSignatures; |
||
795 | |||
796 | return $this; |
||
797 | } |
||
798 | |||
799 | /** |
||
800 | * Gets or sets the maximum duration of the scan in hours. |
||
801 | * |
||
802 | * @return int |
||
803 | */ |
||
804 | public function getMaxScanDuration(): ?int |
||
805 | { |
||
806 | return $this->maxScanDuration; |
||
807 | } |
||
808 | |||
809 | /** |
||
810 | * Gets or sets the maximum duration of the scan in hours. |
||
811 | * |
||
812 | * @param int $maxScanDuration |
||
813 | * |
||
814 | * @return self |
||
815 | */ |
||
816 | public function setMaxScanDuration(?int $maxScanDuration): self |
||
817 | { |
||
818 | $this->maxScanDuration = $maxScanDuration; |
||
819 | |||
820 | return $this; |
||
821 | } |
||
822 | |||
823 | /** |
||
824 | * Gets or sets the description of the policy. |
||
825 | * |
||
826 | * @return string |
||
827 | */ |
||
828 | public function getPolicyDescription(): ?string |
||
829 | { |
||
830 | return $this->policyDescription; |
||
831 | } |
||
832 | |||
833 | /** |
||
834 | * Gets or sets the description of the policy. |
||
835 | * |
||
836 | * @param string $policyDescription |
||
837 | * |
||
838 | * @return self |
||
839 | */ |
||
840 | public function setPolicyDescription(?string $policyDescription): self |
||
841 | { |
||
842 | $this->policyDescription = $policyDescription; |
||
843 | |||
844 | return $this; |
||
845 | } |
||
846 | |||
847 | /** |
||
848 | * Gets or sets the foreign key reference to the related {N:Netsparker.Cloud.Infrastructure.Models.Policy} instance. |
||
849 | * |
||
850 | * @return string |
||
851 | */ |
||
852 | public function getPolicyId(): ?string |
||
853 | { |
||
854 | return $this->policyId; |
||
855 | } |
||
856 | |||
857 | /** |
||
858 | * Gets or sets the foreign key reference to the related {N:Netsparker.Cloud.Infrastructure.Models.Policy} instance. |
||
859 | * |
||
860 | * @param string $policyId |
||
861 | * |
||
862 | * @return self |
||
863 | */ |
||
864 | public function setPolicyId(?string $policyId): self |
||
865 | { |
||
866 | $this->policyId = $policyId; |
||
867 | |||
868 | return $this; |
||
869 | } |
||
870 | |||
871 | /** |
||
872 | * Gets or sets the name of the policy. |
||
873 | * |
||
874 | * @return string |
||
875 | */ |
||
876 | public function getPolicyName(): ?string |
||
877 | { |
||
878 | return $this->policyName; |
||
879 | } |
||
880 | |||
881 | /** |
||
882 | * Gets or sets the name of the policy. |
||
883 | * |
||
884 | * @param string $policyName |
||
885 | * |
||
886 | * @return self |
||
887 | */ |
||
888 | public function setPolicyName(?string $policyName): self |
||
889 | { |
||
890 | $this->policyName = $policyName; |
||
891 | |||
892 | return $this; |
||
893 | } |
||
894 | |||
895 | /** |
||
896 | * Gets or sets the description of the report policy. |
||
897 | * |
||
898 | * @return string |
||
899 | */ |
||
900 | public function getReportPolicyDescription(): ?string |
||
901 | { |
||
902 | return $this->reportPolicyDescription; |
||
903 | } |
||
904 | |||
905 | /** |
||
906 | * Gets or sets the description of the report policy. |
||
907 | * |
||
908 | * @param string $reportPolicyDescription |
||
909 | * |
||
910 | * @return self |
||
911 | */ |
||
912 | public function setReportPolicyDescription(?string $reportPolicyDescription): self |
||
913 | { |
||
914 | $this->reportPolicyDescription = $reportPolicyDescription; |
||
915 | |||
916 | return $this; |
||
917 | } |
||
918 | |||
919 | /** |
||
920 | * Gets or sets the foreign key reference to the related {Netsparker.Cloud.Core.Models.ReportPolicySetting} instance. |
||
921 | * |
||
922 | * @return string |
||
923 | */ |
||
924 | public function getReportPolicyId(): ?string |
||
925 | { |
||
926 | return $this->reportPolicyId; |
||
927 | } |
||
928 | |||
929 | /** |
||
930 | * Gets or sets the foreign key reference to the related {Netsparker.Cloud.Core.Models.ReportPolicySetting} instance. |
||
931 | * |
||
932 | * @param string $reportPolicyId |
||
933 | * |
||
934 | * @return self |
||
935 | */ |
||
936 | public function setReportPolicyId(?string $reportPolicyId): self |
||
937 | { |
||
938 | $this->reportPolicyId = $reportPolicyId; |
||
939 | |||
940 | return $this; |
||
941 | } |
||
942 | |||
943 | /** |
||
944 | * Gets or sets the name of the report policy. |
||
945 | * |
||
946 | * @return string |
||
947 | */ |
||
948 | public function getReportPolicyName(): ?string |
||
949 | { |
||
950 | return $this->reportPolicyName; |
||
951 | } |
||
952 | |||
953 | /** |
||
954 | * Gets or sets the name of the report policy. |
||
955 | * |
||
956 | * @param string $reportPolicyName |
||
957 | * |
||
958 | * @return self |
||
959 | */ |
||
960 | public function setReportPolicyName(?string $reportPolicyName): self |
||
965 | } |
||
966 | |||
967 | /** |
||
968 | * Gets or sets the scan scope. |
||
969 | * |
||
970 | * @return string |
||
971 | */ |
||
972 | public function getScope(): ?string |
||
973 | { |
||
974 | return $this->scope; |
||
975 | } |
||
976 | |||
977 | /** |
||
978 | * Gets or sets the scan scope. |
||
979 | * |
||
980 | * @param string $scope |
||
981 | * |
||
982 | * @return self |
||
983 | */ |
||
984 | public function setScope(?string $scope): self |
||
985 | { |
||
986 | $this->scope = $scope; |
||
987 | |||
988 | return $this; |
||
989 | } |
||
990 | |||
991 | /** |
||
992 | * Gets or sets the sub path maximum dynamic signatures for heuristic URL Rewrite detection. |
||
993 | * |
||
994 | * @return int |
||
995 | */ |
||
996 | public function getSubPathMaxDynamicSignatures(): ?int |
||
997 | { |
||
998 | return $this->subPathMaxDynamicSignatures; |
||
999 | } |
||
1000 | |||
1001 | /** |
||
1002 | * Gets or sets the sub path maximum dynamic signatures for heuristic URL Rewrite detection. |
||
1003 | * |
||
1004 | * @param int $subPathMaxDynamicSignatures |
||
1005 | * |
||
1006 | * @return self |
||
1007 | */ |
||
1008 | public function setSubPathMaxDynamicSignatures(?int $subPathMaxDynamicSignatures): self |
||
1009 | { |
||
1010 | $this->subPathMaxDynamicSignatures = $subPathMaxDynamicSignatures; |
||
1011 | |||
1012 | return $this; |
||
1013 | } |
||
1014 | |||
1015 | /** |
||
1016 | * Gets or sets target path. |
||
1017 | * |
||
1018 | * @return string |
||
1019 | */ |
||
1020 | public function getTargetPath(): ?string |
||
1021 | { |
||
1022 | return $this->targetPath; |
||
1023 | } |
||
1024 | |||
1025 | /** |
||
1026 | * Gets or sets target path. |
||
1027 | * |
||
1028 | * @param string $targetPath |
||
1029 | * |
||
1030 | * @return self |
||
1031 | */ |
||
1032 | public function setTargetPath(?string $targetPath): self |
||
1033 | { |
||
1034 | $this->targetPath = $targetPath; |
||
1035 | |||
1036 | return $this; |
||
1037 | } |
||
1038 | |||
1039 | /** |
||
1040 | * Gets or sets TargetUrl. |
||
1041 | * |
||
1042 | * @return string |
||
1043 | */ |
||
1044 | public function getTargetUrl(): ?string |
||
1045 | { |
||
1046 | return $this->targetUrl; |
||
1047 | } |
||
1048 | |||
1049 | /** |
||
1050 | * Gets or sets TargetUrl. |
||
1051 | * |
||
1052 | * @param string $targetUrl |
||
1053 | * |
||
1054 | * @return self |
||
1055 | */ |
||
1056 | public function setTargetUrl(?string $targetUrl): self |
||
1057 | { |
||
1058 | $this->targetUrl = $targetUrl; |
||
1059 | |||
1060 | return $this; |
||
1061 | } |
||
1062 | |||
1063 | /** |
||
1064 | * Gets or sets the target URL root. |
||
1065 | * |
||
1066 | * @return string |
||
1067 | */ |
||
1068 | public function getTargetUrlRoot(): ?string |
||
1069 | { |
||
1070 | return $this->targetUrlRoot; |
||
1071 | } |
||
1072 | |||
1073 | /** |
||
1074 | * Gets or sets the target URL root. |
||
1075 | * |
||
1076 | * @param string $targetUrlRoot |
||
1077 | * |
||
1078 | * @return self |
||
1079 | */ |
||
1080 | public function setTargetUrlRoot(?string $targetUrlRoot): self |
||
1081 | { |
||
1082 | $this->targetUrlRoot = $targetUrlRoot; |
||
1083 | |||
1084 | return $this; |
||
1085 | } |
||
1086 | |||
1087 | /** |
||
1088 | * Represents a model for carrying out scan time window settings. |
||
1089 | * |
||
1090 | * @return ScanTimeWindowModel |
||
1091 | */ |
||
1092 | public function getTimeWindow(): ?ScanTimeWindowModel |
||
1093 | { |
||
1094 | return $this->timeWindow; |
||
1095 | } |
||
1096 | |||
1097 | /** |
||
1098 | * Represents a model for carrying out scan time window settings. |
||
1099 | * |
||
1100 | * @param ScanTimeWindowModel $timeWindow |
||
1101 | * |
||
1102 | * @return self |
||
1103 | */ |
||
1104 | public function setTimeWindow(?ScanTimeWindowModel $timeWindow): self |
||
1105 | { |
||
1106 | $this->timeWindow = $timeWindow; |
||
1107 | |||
1108 | return $this; |
||
1109 | } |
||
1110 | |||
1111 | /** |
||
1112 | * Gets or sets the total vulnerability count without information vulnerabilities. |
||
1113 | * |
||
1114 | * @return int |
||
1115 | */ |
||
1116 | public function getTotalVulnerabilityCount(): ?int |
||
1119 | } |
||
1120 | |||
1121 | /** |
||
1122 | * Gets or sets the total vulnerability count without information vulnerabilities. |
||
1123 | * |
||
1124 | * @param int $totalVulnerabilityCount |
||
1125 | * |
||
1126 | * @return self |
||
1127 | */ |
||
1128 | public function setTotalVulnerabilityCount(?int $totalVulnerabilityCount): self |
||
1129 | { |
||
1130 | $this->totalVulnerabilityCount = $totalVulnerabilityCount; |
||
1131 | |||
1132 | return $this; |
||
1133 | } |
||
1134 | |||
1135 | /** |
||
1136 | * Gets or sets the extensions that will be analyzed for heuristic URL Rewrite detection. |
||
1137 | * |
||
1138 | * @return string |
||
1139 | */ |
||
1140 | public function getUrlRewriteAnalyzableExtensions(): ?string |
||
1141 | { |
||
1142 | return $this->urlRewriteAnalyzableExtensions; |
||
1143 | } |
||
1144 | |||
1145 | /** |
||
1146 | * Gets or sets the extensions that will be analyzed for heuristic URL Rewrite detection. |
||
1147 | * |
||
1148 | * @param string $urlRewriteAnalyzableExtensions |
||
1149 | * |
||
1150 | * @return self |
||
1151 | */ |
||
1152 | public function setUrlRewriteAnalyzableExtensions(?string $urlRewriteAnalyzableExtensions): self |
||
1153 | { |
||
1154 | $this->urlRewriteAnalyzableExtensions = $urlRewriteAnalyzableExtensions; |
||
1155 | |||
1156 | return $this; |
||
1157 | } |
||
1158 | |||
1159 | /** |
||
1160 | * Gets or sets the block separators for heuristic URL Rewrite detection. |
||
1161 | * |
||
1162 | * @return string |
||
1163 | */ |
||
1164 | public function getUrlRewriteBlockSeparators(): ?string |
||
1165 | { |
||
1166 | return $this->urlRewriteBlockSeparators; |
||
1167 | } |
||
1168 | |||
1169 | /** |
||
1170 | * Gets or sets the block separators for heuristic URL Rewrite detection. |
||
1171 | * |
||
1172 | * @param string $urlRewriteBlockSeparators |
||
1173 | * |
||
1174 | * @return self |
||
1175 | */ |
||
1176 | public function setUrlRewriteBlockSeparators(?string $urlRewriteBlockSeparators): self |
||
1177 | { |
||
1178 | $this->urlRewriteBlockSeparators = $urlRewriteBlockSeparators; |
||
1179 | |||
1180 | return $this; |
||
1181 | } |
||
1182 | |||
1183 | /** |
||
1184 | * Gets or sets the URL Rewrite mode. |
||
1185 | * |
||
1186 | * @return string |
||
1187 | */ |
||
1188 | public function getUrlRewriteMode(): ?string |
||
1189 | { |
||
1190 | return $this->urlRewriteMode; |
||
1191 | } |
||
1192 | |||
1193 | /** |
||
1194 | * Gets or sets the URL Rewrite mode. |
||
1195 | * |
||
1196 | * @param string $urlRewriteMode |
||
1197 | * |
||
1198 | * @return self |
||
1199 | */ |
||
1200 | public function setUrlRewriteMode(?string $urlRewriteMode): self |
||
1201 | { |
||
1202 | $this->urlRewriteMode = $urlRewriteMode; |
||
1203 | |||
1204 | return $this; |
||
1205 | } |
||
1206 | |||
1207 | /** |
||
1208 | * Gets or sets the URL Rewrite rules. |
||
1209 | * |
||
1210 | * @return UrlRewriteRuleModel[] |
||
1211 | */ |
||
1212 | public function getUrlRewriteRules(): ?array |
||
1213 | { |
||
1214 | return $this->urlRewriteRules; |
||
1215 | } |
||
1216 | |||
1217 | /** |
||
1218 | * Gets or sets the URL Rewrite rules. |
||
1219 | * |
||
1220 | * @param UrlRewriteRuleModel[] $urlRewriteRules |
||
1221 | * |
||
1222 | * @return self |
||
1223 | */ |
||
1224 | public function setUrlRewriteRules(?array $urlRewriteRules): self |
||
1225 | { |
||
1226 | $this->urlRewriteRules = $urlRewriteRules; |
||
1227 | |||
1228 | return $this; |
||
1229 | } |
||
1230 | |||
1231 | /** |
||
1232 | * Gets or sets the user identifier. |
||
1233 | * |
||
1234 | * @return string |
||
1235 | */ |
||
1236 | public function getUserId(): ?string |
||
1237 | { |
||
1238 | return $this->userId; |
||
1239 | } |
||
1240 | |||
1241 | /** |
||
1242 | * Gets or sets the user identifier. |
||
1243 | * |
||
1244 | * @param string $userId |
||
1245 | * |
||
1246 | * @return self |
||
1247 | */ |
||
1248 | public function setUserId(?string $userId): self |
||
1249 | { |
||
1250 | $this->userId = $userId; |
||
1251 | |||
1252 | return $this; |
||
1253 | } |
||
1254 | |||
1255 | /** |
||
1256 | * Represents optional commit info comes from Netsparker continuous integration plugins. |
||
1257 | * |
||
1258 | * @return VcsCommitInfo |
||
1259 | */ |
||
1260 | public function getVcsCommitInfo(): ?VcsCommitInfo |
||
1261 | { |
||
1262 | return $this->vcsCommitInfo; |
||
1263 | } |
||
1264 | |||
1265 | /** |
||
1266 | * Represents optional commit info comes from Netsparker continuous integration plugins. |
||
1267 | * |
||
1268 | * @param VcsCommitInfo $vcsCommitInfo |
||
1269 | * |
||
1270 | * @return self |
||
1271 | */ |
||
1272 | public function setVcsCommitInfo(?VcsCommitInfo $vcsCommitInfo): self |
||
1273 | { |
||
1274 | $this->vcsCommitInfo = $vcsCommitInfo; |
||
1275 | |||
1276 | return $this; |
||
1277 | } |
||
1278 | |||
1279 | /** |
||
1280 | * Gets or sets the name of the website. |
||
1281 | * |
||
1282 | * @return string |
||
1283 | */ |
||
1284 | public function getWebsiteName(): ?string |
||
1285 | { |
||
1286 | return $this->websiteName; |
||
1287 | } |
||
1288 | |||
1289 | /** |
||
1290 | * Gets or sets the name of the website. |
||
1291 | * |
||
1292 | * @param string $websiteName |
||
1293 | * |
||
1294 | * @return self |
||
1295 | */ |
||
1296 | public function setWebsiteName(?string $websiteName): self |
||
1297 | { |
||
1298 | $this->websiteName = $websiteName; |
||
1299 | |||
1300 | return $this; |
||
1301 | } |
||
1302 | |||
1303 | /** |
||
1304 | * Gets or sets the website URL. |
||
1305 | * |
||
1306 | * @return string |
||
1307 | */ |
||
1308 | public function getWebsiteUrl(): ?string |
||
1309 | { |
||
1310 | return $this->websiteUrl; |
||
1311 | } |
||
1312 | |||
1313 | /** |
||
1314 | * Gets or sets the website URL. |
||
1315 | * |
||
1316 | * @param string $websiteUrl |
||
1317 | * |
||
1318 | * @return self |
||
1319 | */ |
||
1320 | public function setWebsiteUrl(?string $websiteUrl): self |
||
1321 | { |
||
1322 | $this->websiteUrl = $websiteUrl; |
||
1323 | |||
1324 | return $this; |
||
1325 | } |
||
1326 | |||
1327 | /** |
||
1328 | * Gets or sets the number of steps (HTTP requests) completed thus far. |
||
1329 | * |
||
1330 | * @return int |
||
1331 | */ |
||
1332 | public function getCompletedSteps(): ?int |
||
1333 | { |
||
1334 | return $this->completedSteps; |
||
1335 | } |
||
1336 | |||
1337 | /** |
||
1338 | * Gets or sets the number of steps (HTTP requests) completed thus far. |
||
1339 | * |
||
1340 | * @param int $completedSteps |
||
1341 | * |
||
1342 | * @return self |
||
1343 | */ |
||
1344 | public function setCompletedSteps(?int $completedSteps): self |
||
1349 | } |
||
1350 | |||
1351 | /** |
||
1352 | * Gets or sets the estimated launch time in minutes for queued scans. |
||
1353 | * |
||
1354 | * @return int |
||
1355 | */ |
||
1356 | public function getEstimatedLaunchTime(): ?int |
||
1357 | { |
||
1358 | return $this->estimatedLaunchTime; |
||
1359 | } |
||
1360 | |||
1361 | /** |
||
1362 | * Gets or sets the estimated launch time in minutes for queued scans. |
||
1363 | * |
||
1364 | * @param int $estimatedLaunchTime |
||
1365 | * |
||
1366 | * @return self |
||
1367 | */ |
||
1368 | public function setEstimatedLaunchTime(?int $estimatedLaunchTime): self |
||
1369 | { |
||
1370 | $this->estimatedLaunchTime = $estimatedLaunchTime; |
||
1371 | |||
1372 | return $this; |
||
1373 | } |
||
1374 | |||
1375 | /** |
||
1376 | * Gets or sets the estimated total number of steps (HTTP requests) that this scan will undertake. |
||
1377 | * |
||
1378 | * @return int |
||
1379 | */ |
||
1380 | public function getEstimatedSteps(): ?int |
||
1381 | { |
||
1382 | return $this->estimatedSteps; |
||
1383 | } |
||
1384 | |||
1385 | /** |
||
1386 | * Gets or sets the estimated total number of steps (HTTP requests) that this scan will undertake. |
||
1387 | * |
||
1388 | * @param int $estimatedSteps |
||
1389 | * |
||
1390 | * @return self |
||
1391 | */ |
||
1392 | public function setEstimatedSteps(?int $estimatedSteps): self |
||
1393 | { |
||
1394 | $this->estimatedSteps = $estimatedSteps; |
||
1395 | |||
1396 | return $this; |
||
1397 | } |
||
1398 | |||
1399 | /** |
||
1400 | * Gets or sets FailureReason. |
||
1401 | * |
||
1402 | * @return string |
||
1403 | */ |
||
1404 | public function getFailureReason(): ?string |
||
1405 | { |
||
1406 | return $this->failureReason; |
||
1407 | } |
||
1408 | |||
1409 | /** |
||
1410 | * Gets or sets FailureReason. |
||
1411 | * |
||
1412 | * @param string $failureReason |
||
1413 | * |
||
1414 | * @return self |
||
1415 | */ |
||
1416 | public function setFailureReason(?string $failureReason): self |
||
1417 | { |
||
1418 | $this->failureReason = $failureReason; |
||
1419 | |||
1420 | return $this; |
||
1421 | } |
||
1422 | |||
1423 | /** |
||
1424 | * Gets the failure reason description. |
||
1425 | * |
||
1426 | * @return string |
||
1427 | */ |
||
1428 | public function getFailureReasonDescription(): ?string |
||
1429 | { |
||
1430 | return $this->failureReasonDescription; |
||
1431 | } |
||
1432 | |||
1433 | /** |
||
1434 | * Gets the failure reason description. |
||
1435 | * |
||
1436 | * @param string $failureReasonDescription |
||
1437 | * |
||
1438 | * @return self |
||
1439 | */ |
||
1440 | public function setFailureReasonDescription(?string $failureReasonDescription): self |
||
1441 | { |
||
1442 | $this->failureReasonDescription = $failureReasonDescription; |
||
1443 | |||
1444 | return $this; |
||
1445 | } |
||
1446 | |||
1447 | /** |
||
1448 | * Gets the failure reason string. |
||
1449 | * |
||
1450 | * @return string |
||
1451 | */ |
||
1452 | public function getFailureReasonString(): ?string |
||
1453 | { |
||
1454 | return $this->failureReasonString; |
||
1455 | } |
||
1456 | |||
1457 | /** |
||
1458 | * Gets the failure reason string. |
||
1459 | * |
||
1460 | * @param string $failureReasonString |
||
1461 | * |
||
1462 | * @return self |
||
1463 | */ |
||
1464 | public function setFailureReasonString(?string $failureReasonString): self |
||
1465 | { |
||
1466 | $this->failureReasonString = $failureReasonString; |
||
1467 | |||
1468 | return $this; |
||
1469 | } |
||
1470 | |||
1471 | /** |
||
1472 | * Gets or sets the global threat level. |
||
1473 | * |
||
1474 | * @return string |
||
1475 | */ |
||
1476 | public function getGlobalThreatLevel(): ?string |
||
1477 | { |
||
1478 | return $this->globalThreatLevel; |
||
1479 | } |
||
1480 | |||
1481 | /** |
||
1482 | * Gets or sets the global threat level. |
||
1483 | * |
||
1484 | * @param string $globalThreatLevel |
||
1485 | * |
||
1486 | * @return self |
||
1487 | */ |
||
1488 | public function setGlobalThreatLevel(?string $globalThreatLevel): self |
||
1489 | { |
||
1490 | $this->globalThreatLevel = $globalThreatLevel; |
||
1491 | |||
1492 | return $this; |
||
1493 | } |
||
1494 | |||
1495 | /** |
||
1496 | * Gets the global vulnerability critical count. |
||
1497 | * |
||
1498 | * @return int |
||
1499 | */ |
||
1500 | public function getGlobalVulnerabilityCriticalCount(): ?int |
||
1501 | { |
||
1502 | return $this->globalVulnerabilityCriticalCount; |
||
1503 | } |
||
1504 | |||
1505 | /** |
||
1506 | * Gets the global vulnerability critical count. |
||
1507 | * |
||
1508 | * @param int $globalVulnerabilityCriticalCount |
||
1509 | * |
||
1510 | * @return self |
||
1511 | */ |
||
1512 | public function setGlobalVulnerabilityCriticalCount(?int $globalVulnerabilityCriticalCount): self |
||
1513 | { |
||
1514 | $this->globalVulnerabilityCriticalCount = $globalVulnerabilityCriticalCount; |
||
1515 | |||
1516 | return $this; |
||
1517 | } |
||
1518 | |||
1519 | /** |
||
1520 | * Gets the global vulnerability high count. |
||
1521 | * |
||
1522 | * @return int |
||
1523 | */ |
||
1524 | public function getGlobalVulnerabilityHighCount(): ?int |
||
1525 | { |
||
1526 | return $this->globalVulnerabilityHighCount; |
||
1527 | } |
||
1528 | |||
1529 | /** |
||
1530 | * Gets the global vulnerability high count. |
||
1531 | * |
||
1532 | * @param int $globalVulnerabilityHighCount |
||
1533 | * |
||
1534 | * @return self |
||
1535 | */ |
||
1536 | public function setGlobalVulnerabilityHighCount(?int $globalVulnerabilityHighCount): self |
||
1537 | { |
||
1538 | $this->globalVulnerabilityHighCount = $globalVulnerabilityHighCount; |
||
1539 | |||
1540 | return $this; |
||
1541 | } |
||
1542 | |||
1543 | /** |
||
1544 | * Gets the global vulnerability information count. |
||
1545 | * |
||
1546 | * @return int |
||
1547 | */ |
||
1548 | public function getGlobalVulnerabilityInfoCount(): ?int |
||
1549 | { |
||
1550 | return $this->globalVulnerabilityInfoCount; |
||
1551 | } |
||
1552 | |||
1553 | /** |
||
1554 | * Gets the global vulnerability information count. |
||
1555 | * |
||
1556 | * @param int $globalVulnerabilityInfoCount |
||
1557 | * |
||
1558 | * @return self |
||
1559 | */ |
||
1560 | public function setGlobalVulnerabilityInfoCount(?int $globalVulnerabilityInfoCount): self |
||
1561 | { |
||
1562 | $this->globalVulnerabilityInfoCount = $globalVulnerabilityInfoCount; |
||
1563 | |||
1564 | return $this; |
||
1565 | } |
||
1566 | |||
1567 | /** |
||
1568 | * Gets the global vulnerability low count. |
||
1569 | * |
||
1570 | * @return int |
||
1571 | */ |
||
1572 | public function getGlobalVulnerabilityLowCount(): ?int |
||
1573 | { |
||
1574 | return $this->globalVulnerabilityLowCount; |
||
1575 | } |
||
1576 | |||
1577 | /** |
||
1578 | * Gets the global vulnerability low count. |
||
1579 | * |
||
1580 | * @param int $globalVulnerabilityLowCount |
||
1581 | * |
||
1582 | * @return self |
||
1583 | */ |
||
1584 | public function setGlobalVulnerabilityLowCount(?int $globalVulnerabilityLowCount): self |
||
1589 | } |
||
1590 | |||
1591 | /** |
||
1592 | * Gets the global vulnerability medium count. |
||
1593 | * |
||
1594 | * @return int |
||
1595 | */ |
||
1596 | public function getGlobalVulnerabilityMediumCount(): ?int |
||
1597 | { |
||
1598 | return $this->globalVulnerabilityMediumCount; |
||
1599 | } |
||
1600 | |||
1601 | /** |
||
1602 | * Gets the global vulnerability medium count. |
||
1603 | * |
||
1604 | * @param int $globalVulnerabilityMediumCount |
||
1605 | * |
||
1606 | * @return self |
||
1607 | */ |
||
1608 | public function setGlobalVulnerabilityMediumCount(?int $globalVulnerabilityMediumCount): self |
||
1609 | { |
||
1610 | $this->globalVulnerabilityMediumCount = $globalVulnerabilityMediumCount; |
||
1611 | |||
1612 | return $this; |
||
1613 | } |
||
1614 | |||
1615 | /** |
||
1616 | * Gets or sets Id. |
||
1617 | * |
||
1618 | * @return string |
||
1619 | */ |
||
1620 | public function getId(): ?string |
||
1621 | { |
||
1622 | return $this->id; |
||
1623 | } |
||
1624 | |||
1625 | /** |
||
1626 | * Gets or sets Id. |
||
1627 | * |
||
1628 | * @param string $id |
||
1629 | * |
||
1630 | * @return self |
||
1631 | */ |
||
1632 | public function setId(?string $id): self |
||
1633 | { |
||
1634 | $this->id = $id; |
||
1635 | |||
1636 | return $this; |
||
1637 | } |
||
1638 | |||
1639 | /** |
||
1640 | * Gets a value indicating whether scan is completed with any state. |
||
1641 | * |
||
1642 | * @return bool |
||
1643 | */ |
||
1644 | public function getIsCompleted(): ?bool |
||
1645 | { |
||
1646 | return $this->isCompleted; |
||
1647 | } |
||
1648 | |||
1649 | /** |
||
1650 | * Gets a value indicating whether scan is completed with any state. |
||
1651 | * |
||
1652 | * @param bool $isCompleted |
||
1653 | * |
||
1654 | * @return self |
||
1655 | */ |
||
1656 | public function setIsCompleted(?bool $isCompleted): self |
||
1657 | { |
||
1658 | $this->isCompleted = $isCompleted; |
||
1659 | |||
1660 | return $this; |
||
1661 | } |
||
1662 | |||
1663 | /** |
||
1664 | * Gets the completed percentage. |
||
1665 | * |
||
1666 | * @return int |
||
1667 | */ |
||
1668 | public function getPercentage(): ?int |
||
1669 | { |
||
1670 | return $this->percentage; |
||
1671 | } |
||
1672 | |||
1673 | /** |
||
1674 | * Gets the completed percentage. |
||
1675 | * |
||
1676 | * @param int $percentage |
||
1677 | * |
||
1678 | * @return self |
||
1679 | */ |
||
1680 | public function setPercentage(?int $percentage): self |
||
1681 | { |
||
1682 | $this->percentage = $percentage; |
||
1683 | |||
1684 | return $this; |
||
1685 | } |
||
1686 | |||
1687 | /** |
||
1688 | * Gets or sets the Phase. |
||
1689 | * |
||
1690 | * @return string |
||
1691 | */ |
||
1692 | public function getPhase(): ?string |
||
1693 | { |
||
1694 | return $this->phase; |
||
1695 | } |
||
1696 | |||
1697 | /** |
||
1698 | * Gets or sets the Phase. |
||
1699 | * |
||
1700 | * @param string $phase |
||
1701 | * |
||
1702 | * @return self |
||
1703 | */ |
||
1704 | public function setPhase(?string $phase): self |
||
1705 | { |
||
1706 | $this->phase = $phase; |
||
1707 | |||
1708 | return $this; |
||
1709 | } |
||
1710 | |||
1711 | /** |
||
1712 | * Gets or sets the scan group identifier. |
||
1713 | * |
||
1714 | * @return string |
||
1715 | */ |
||
1716 | public function getScanTaskGroupId(): ?string |
||
1717 | { |
||
1718 | return $this->scanTaskGroupId; |
||
1719 | } |
||
1720 | |||
1721 | /** |
||
1722 | * Gets or sets the scan group identifier. |
||
1723 | * |
||
1724 | * @param string $scanTaskGroupId |
||
1725 | * |
||
1726 | * @return self |
||
1727 | */ |
||
1728 | public function setScanTaskGroupId(?string $scanTaskGroupId): self |
||
1729 | { |
||
1730 | $this->scanTaskGroupId = $scanTaskGroupId; |
||
1731 | |||
1732 | return $this; |
||
1733 | } |
||
1734 | |||
1735 | /** |
||
1736 | * Gets or sets the type of the scan. |
||
1737 | * |
||
1738 | * @return string |
||
1739 | */ |
||
1740 | public function getScanType(): ?string |
||
1741 | { |
||
1742 | return $this->scanType; |
||
1743 | } |
||
1744 | |||
1745 | /** |
||
1746 | * Gets or sets the type of the scan. |
||
1747 | * |
||
1748 | * @param string $scanType |
||
1749 | * |
||
1750 | * @return self |
||
1751 | */ |
||
1752 | public function setScanType(?string $scanType): self |
||
1753 | { |
||
1754 | $this->scanType = $scanType; |
||
1755 | |||
1756 | return $this; |
||
1757 | } |
||
1758 | |||
1759 | /** |
||
1760 | * Gets or sets the scheduled scan identifier. |
||
1761 | * |
||
1762 | * @return string |
||
1763 | */ |
||
1764 | public function getScheduledScanId(): ?string |
||
1765 | { |
||
1766 | return $this->scheduledScanId; |
||
1767 | } |
||
1768 | |||
1769 | /** |
||
1770 | * Gets or sets the scheduled scan identifier. |
||
1771 | * |
||
1772 | * @param string $scheduledScanId |
||
1773 | * |
||
1774 | * @return self |
||
1775 | */ |
||
1776 | public function setScheduledScanId(?string $scheduledScanId): self |
||
1777 | { |
||
1778 | $this->scheduledScanId = $scheduledScanId; |
||
1779 | |||
1780 | return $this; |
||
1781 | } |
||
1782 | |||
1783 | /** |
||
1784 | * Gets or sets State. |
||
1785 | * |
||
1786 | * @return string |
||
1787 | */ |
||
1788 | public function getState(): ?string |
||
1791 | } |
||
1792 | |||
1793 | /** |
||
1794 | * Gets or sets State. |
||
1795 | * |
||
1796 | * @param string $state |
||
1797 | * |
||
1798 | * @return self |
||
1799 | */ |
||
1800 | public function setState(?string $state): self |
||
1801 | { |
||
1802 | $this->state = $state; |
||
1803 | |||
1804 | return $this; |
||
1805 | } |
||
1806 | |||
1807 | /** |
||
1808 | * Gets or sets the date and time at which this task state was last changed. |
||
1809 | * |
||
1810 | * @return \DateTime |
||
1811 | */ |
||
1812 | public function getStateChanged(): ?\DateTime |
||
1813 | { |
||
1814 | return $this->stateChanged; |
||
1815 | } |
||
1816 | |||
1817 | /** |
||
1818 | * Gets or sets the date and time at which this task state was last changed. |
||
1819 | * |
||
1820 | * @param \DateTime $stateChanged |
||
1821 | * |
||
1822 | * @return self |
||
1823 | */ |
||
1824 | public function setStateChanged(?\DateTime $stateChanged): self |
||
1825 | { |
||
1826 | $this->stateChanged = $stateChanged; |
||
1827 | |||
1828 | return $this; |
||
1829 | } |
||
1830 | |||
1831 | /** |
||
1832 | * Gets or sets the threat level. |
||
1833 | * |
||
1834 | * @return string |
||
1835 | */ |
||
1836 | public function getThreatLevel(): ?string |
||
1837 | { |
||
1838 | return $this->threatLevel; |
||
1839 | } |
||
1840 | |||
1841 | /** |
||
1842 | * Gets or sets the threat level. |
||
1843 | * |
||
1844 | * @param string $threatLevel |
||
1845 | * |
||
1846 | * @return self |
||
1847 | */ |
||
1848 | public function setThreatLevel(?string $threatLevel): self |
||
1849 | { |
||
1850 | $this->threatLevel = $threatLevel; |
||
1851 | |||
1852 | return $this; |
||
1853 | } |
||
1854 | |||
1855 | /** |
||
1856 | * Gets or sets the count of vulnerabilities with critical level severity. |
||
1857 | * |
||
1858 | * @return int |
||
1859 | */ |
||
1860 | public function getVulnerabilityCriticalCount(): ?int |
||
1861 | { |
||
1862 | return $this->vulnerabilityCriticalCount; |
||
1863 | } |
||
1864 | |||
1865 | /** |
||
1866 | * Gets or sets the count of vulnerabilities with critical level severity. |
||
1867 | * |
||
1868 | * @param int $vulnerabilityCriticalCount |
||
1869 | * |
||
1870 | * @return self |
||
1871 | */ |
||
1872 | public function setVulnerabilityCriticalCount(?int $vulnerabilityCriticalCount): self |
||
1873 | { |
||
1874 | $this->vulnerabilityCriticalCount = $vulnerabilityCriticalCount; |
||
1875 | |||
1876 | return $this; |
||
1877 | } |
||
1878 | |||
1879 | /** |
||
1880 | * Gets or sets the count of vulnerabilities with high level severity. |
||
1881 | * |
||
1882 | * @return int |
||
1883 | */ |
||
1884 | public function getVulnerabilityHighCount(): ?int |
||
1885 | { |
||
1886 | return $this->vulnerabilityHighCount; |
||
1887 | } |
||
1888 | |||
1889 | /** |
||
1890 | * Gets or sets the count of vulnerabilities with high level severity. |
||
1891 | * |
||
1892 | * @param int $vulnerabilityHighCount |
||
1893 | * |
||
1894 | * @return self |
||
1895 | */ |
||
1896 | public function setVulnerabilityHighCount(?int $vulnerabilityHighCount): self |
||
1897 | { |
||
1898 | $this->vulnerabilityHighCount = $vulnerabilityHighCount; |
||
1899 | |||
1900 | return $this; |
||
1901 | } |
||
1902 | |||
1903 | /** |
||
1904 | * Gets or sets the count of vulnerabilities with information level severity. |
||
1905 | * |
||
1906 | * @return int |
||
1907 | */ |
||
1908 | public function getVulnerabilityInfoCount(): ?int |
||
1911 | } |
||
1912 | |||
1913 | /** |
||
1914 | * Gets or sets the count of vulnerabilities with information level severity. |
||
1915 | * |
||
1916 | * @param int $vulnerabilityInfoCount |
||
1917 | * |
||
1918 | * @return self |
||
1919 | */ |
||
1920 | public function setVulnerabilityInfoCount(?int $vulnerabilityInfoCount): self |
||
1921 | { |
||
1922 | $this->vulnerabilityInfoCount = $vulnerabilityInfoCount; |
||
1923 | |||
1924 | return $this; |
||
1925 | } |
||
1926 | |||
1927 | /** |
||
1928 | * Gets or sets the count of vulnerabilities with low level severity. |
||
1929 | * |
||
1930 | * @return int |
||
1931 | */ |
||
1932 | public function getVulnerabilityLowCount(): ?int |
||
1933 | { |
||
1934 | return $this->vulnerabilityLowCount; |
||
1935 | } |
||
1936 | |||
1937 | /** |
||
1938 | * Gets or sets the count of vulnerabilities with low level severity. |
||
1939 | * |
||
1940 | * @param int $vulnerabilityLowCount |
||
1941 | * |
||
1942 | * @return self |
||
1943 | */ |
||
1944 | public function setVulnerabilityLowCount(?int $vulnerabilityLowCount): self |
||
1945 | { |
||
1946 | $this->vulnerabilityLowCount = $vulnerabilityLowCount; |
||
1947 | |||
1948 | return $this; |
||
1949 | } |
||
1950 | |||
1951 | /** |
||
1952 | * Gets or sets the count of vulnerabilities with medium level severity. |
||
1953 | * |
||
1954 | * @return int |
||
1955 | */ |
||
1956 | public function getVulnerabilityMediumCount(): ?int |
||
1957 | { |
||
1958 | return $this->vulnerabilityMediumCount; |
||
1959 | } |
||
1960 | |||
1961 | /** |
||
1962 | * Gets or sets the count of vulnerabilities with medium level severity. |
||
1963 | * |
||
1964 | * @param int $vulnerabilityMediumCount |
||
1965 | * |
||
1966 | * @return self |
||
1967 | */ |
||
1968 | public function setVulnerabilityMediumCount(?int $vulnerabilityMediumCount): self |
||
1969 | { |
||
1970 | $this->vulnerabilityMediumCount = $vulnerabilityMediumCount; |
||
1971 | |||
1972 | return $this; |
||
1973 | } |
||
1974 | |||
1975 | /** |
||
1976 | * Gets the website identifier. |
||
1977 | * |
||
1978 | * @return string |
||
1979 | */ |
||
1980 | public function getWebsiteId(): ?string |
||
1981 | { |
||
1982 | return $this->websiteId; |
||
1983 | } |
||
1984 | |||
1985 | /** |
||
1986 | * Gets the website identifier. |
||
1987 | * |
||
1988 | * @param string $websiteId |
||
1989 | * |
||
1990 | * @return self |
||
1991 | */ |
||
1992 | public function setWebsiteId(?string $websiteId): self |
||
1997 | } |
||
1998 | } |
||
1999 |