ScanRawResultResponse   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 10
dl 0
loc 14
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
1
<?php
2
3
namespace App\Siweocs\Models;
4
5
use App\Scan;
6
7
class ScanRawResultResponse extends SiwecosBaseReponse
8
{
9
    public $scanStarted;
10
    public $scanFinished;
11
    public $scanners;
12
    public $domain;
13
14
    public function __construct(Scan $scan)
15
    {
16
        parent::__construct('current state of requested token');
17
        $this->domain = $scan->url;
18
        $this->scanStarted = $scan->created_at;
19
        $this->scanFinished = $scan->updated_at;
20
        $this->scanners = $scan->results;
21
    }
22
}
23