FingersCrossedProcessor   A
last analyzed

↳ Parent: Project

Coupling/Cohesion

Components 0
Dependencies 0

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 17
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A process() 0 8 2
1
<?php
2
3
namespace League\Pipeline;
4
5
class FingersCrossedProcessor implements ProcessorInterface
6
{
7
    /**
8
     * @param array $stages
9
     * @param mixed $payload
10
     *
11
     * @return mixed
12
     */
13 12
    public function process(array $stages, $payload)
14
    {
15 12
        foreach ($stages as $stage) {
16 12
            $payload = call_user_func($stage, $payload);
17 12
        }
18
19 12
        return $payload;
20
    }
21
}
22