AttributeAssumption   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 12 1
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