Passed
Pull Request — develop (#155)
by Laurent
03:47 queued 01:57
created

FamilyLog   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 15
c 1
b 0
f 1
dl 0
loc 26
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 16 1
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of the G.L.S.R. Apps package.
7
 *
8
 * (c) Dev-Int Création <[email protected]>.
9
 *
10
 * For the full copyright and license information, please view the LICENSE
11
 * file that was distributed with this source code.
12
 */
13
14
namespace Administration\Application\FamilyLog\ReadModel;
15
16
use Administration\Domain\FamilyLog\Model\FamilyLog as FamilyLogDomainModel;
17
18
final class FamilyLog
19
{
20
    public string $uuid;
21
    public string $label;
22
    public int $level;
23
    public ?FamilyLogDomainModel $parent = null;
24
    public ?array $children = null;
25
    public string $path;
26
    public string $slug;
27
28
    public function __construct(
29
        string $uuid,
30
        string $label,
31
        int $level,
32
        ?FamilyLogDomainModel $parent,
33
        ?array $children,
34
        string $path,
35
        string $slug
36
    ) {
37
        $this->uuid = $uuid;
38
        $this->label = $label;
39
        $this->level = $level;
40
        $this->parent = $parent;
41
        $this->children = $children;
42
        $this->path = $path;
43
        $this->slug = $slug;
44
    }
45
}
46