PassthroughCommandHandler::execute()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 2
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