FingersCrossedProcessor   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A process() 0 7 2
1
<?php
2
declare(strict_types=1);
3
4
namespace League\Pipeline;
5
6
class FingersCrossedProcessor implements ProcessorInterface
7
{
8 12
    public function process($payload, callable ...$stages)
9
    {
10 12
        foreach ($stages as $stage) {
11 12
            $payload = $stage($payload);
12
        }
13
14 12
        return $payload;
15
    }
16
}
17