Passed
Pull Request — master (#896)
by Songda
01:56
created

NoHttpRequestDirection::guide()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 2
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Yansongda\Pay\Direction;
6
7
use Psr\Http\Message\ResponseInterface;
8
use Yansongda\Pay\Contract\DirectionInterface;
9
use Yansongda\Pay\Contract\PackerInterface;
10
11
class NoHttpRequestDirection implements DirectionInterface
12
{
13
    public function guide(PackerInterface $packer, ?ResponseInterface $response): ?ResponseInterface
14
    {
15
        return $response;
16
    }
17
}
18