Passed
Pull Request — master (#1969)
by Janko
22:34 queued 10:03
created

TrumfieldNfsItem::getFormerRumpId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 0
cts 2
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Stu\Module\Spacecraft\Lib;
6
7
final class TrumfieldNfsItem
8
{
9
    public function __construct(private TTrumfieldItem $item) {}
10
11
    public function getHull(): int
12
    {
13
        return $this->item->getHull();
14
    }
15
16
    public function isTrumfield(): bool
17
    {
18
        return true;
19
    }
20
21
    public function getFormerRumpId(): int
22
    {
23
        return $this->item->getFormerRumpId();
24
    }
25
}
26