PassthroughCommandHandler   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 13
c 0
b 0
f 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A execute() 0 4 1
1
<?php
2
3
namespace hiapi\middlewares;
4
5
use League\Tactician\Middleware;
6
7
/**
8
 * Class PassthroughCommandHandler
9
 *
10
 * @author Dmytro Naumenko <[email protected]>
11
 */
12
class PassthroughCommandHandler implements Middleware
13
{
14
    /**
15
     * @param object $command
16
     * @param callable $next
17
     *
18
     * @return mixed
19
     */
20
    public function execute($command, callable $next)
21
    {
22
        return $command;
23
    }
24
}
25