Passed
Push — master ( d4e337...e0198f )
by Martin
02:43
created

CollectionCallable::build()   A

Complexity

Conditions 3
Paths 3

Size

Total Lines 18
Code Lines 9

Duplication

Lines 18
Ratio 100 %

Code Coverage

Tests 10
CRAP Score 3

Importance

Changes 0
Metric Value
cc 3
eloc 9
nc 3
nop 0
dl 18
loc 18
ccs 10
cts 10
cp 1
crap 3
rs 9.4285
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A CollectionCallable::mapData() 0 2 1
1
<?php
2
3
declare(strict_types = 1);
4
5
namespace KingsonDe\Marshal\Data;
6
7
class CollectionCallable extends AbstractCallableDataStructure {
8
9
    use CollectionTrait;
10
11
    /**
12
     * @inheritdoc
13
     */
14 4
    protected function mapData($model, ...$data) {
15 4
        return $this->getMappingFunction()($model, ...$data);
16
    }
17
}
18