Base::setBase()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 5
ccs 3
cts 3
cp 1
rs 10
cc 1
nc 1
nop 1
crap 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