Passed
Push — main ( b77906...b05fa5 )
by Bingo
02:54
created

AttributeAssumption::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 12
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 5
nc 1
nop 5
dl 0
loc 12
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Xml\Test;
4
5
class AttributeAssumption
6
{
7
    public $attributeName;
8
    public $namespace;
9
    public $isIdAttribute;
10
    public $isRequired;
11
    public $defaultValue;
12
13
    public function __construct(
14
        ?string $namespace,
15
        string $attributeName,
16
        bool $isIdAttribute = false,
17
        bool $isRequired = false,
18
        ?string $defaultValue = null
19
    ) {
20
        $this->attributeName = $attributeName;
21
        $this->namespace = $namespace;
22
        $this->isIdAttribute = $isIdAttribute;
23
        $this->isRequired = $isRequired;
24
        $this->defaultValue = $defaultValue;
25
    }
26
}
27