ClientDropdownValuesData   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 9
dl 0
loc 16
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 1
1
<?php
2
3
namespace App\Module\Client\DropdownFinder\Data;
4
5
use App\Module\Client\Enum\ClientVigilanceLevel;
6
use App\Module\FormOption\SexOption;
7
8
/**
9
 * All status, sex and users for dropdowns.
10
 */
11
class ClientDropdownValuesData
12
{
13
    // [int:id => string:name]
14
    public ?array $statuses;
15
    public ?array $users;
16
    public ?array $sexes;
17
    public ?array $vigilanceLevel;
18
19 6
    public function __construct(
20
        ?array $statuses = null,
21
        ?array $users = null,
22
    ) {
23 6
        $this->statuses = $statuses;
24 6
        $this->users = $users;
25 6
        $this->sexes = SexOption::getAllDisplayNames();
26 6
        $this->vigilanceLevel = ClientVigilanceLevel::getAllDisplayNames();
27
    }
28
}
29