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

CollectionCallable   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A 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