Item   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 8
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A build() 0 3 1
1
<?php
2
3
declare(strict_types = 1);
4
5
namespace KingsonDe\Marshal\Data;
6
7
class Item extends AbstractDataStructure {
8
9
    /**
10
     * @inheritdoc
11
     */
12 7
    public function build() {
13
        /** @noinspection PhpUndefinedMethodInspection */
14 7
        return $this->getMapper()->map(...$this->getData());
0 ignored issues
show
Bug introduced by
The method map() does not exist on KingsonDe\Marshal\AbstractMapper. Since it exists in all sub-types, consider adding an abstract or default implementation to KingsonDe\Marshal\AbstractMapper. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

14
        return $this->getMapper()->/** @scrutinizer ignore-call */ map(...$this->getData());
Loading history...
15
    }
16
}
17