Base   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 5
c 1
b 0
f 0
dl 0
loc 20
ccs 5
cts 5
cp 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getBase() 0 3 1
A setBase() 0 5 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace GoetasWebservices\XML\XSDReader\Schema\Inheritance;
6
7
use GoetasWebservices\XML\XSDReader\Schema\Type\Type;
8
9
abstract class Base
10
{
11
    /**
12
     * @var Type|null
13
     */
14
    protected $base;
15
16 7
    public function getBase(): ?Type
17
    {
18 7
        return $this->base;
19
    }
20
21
    /**
22
     * @return $this
23
     */
24 74
    public function setBase(Type $base): self
25
    {
26 74
        $this->base = $base;
27
28 74
        return $this;
29
    }
30
}
31