DashboardData   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 11
dl 0
loc 15
ccs 6
cts 6
cp 1
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\Module\Dashboard\DisplayPage\Data;
4
5
class DashboardData
6
{
7
    public string $title;
8
    public ?string $panelId;
9
    public ?string $panelClass;
10
    public ?string $panelHtmlContent;
11
    public bool $authorized;
12
13 1
    public function __construct(array $data)
14
    {
15 1
        $this->title = $data['title'] ?? null;
16 1
        $this->panelId = $data['panelId'] ?? null;
17 1
        $this->panelClass = $data['panelClass'] ?? null;
18 1
        $this->panelHtmlContent = $data['panelHtmlContent'] ?? null;
19 1
        $this->authorized = $data['authorized'] ?? null;
20
    }
21
}
22