Passed
Push — master ( 7ef1e6...041b4f )
by Songda
02:07 queued 15s
created

NoHttpRequestDirection::parse()   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\PackerInterface;
9
use Yansongda\Pay\Contract\ParserInterface;
10
11
class NoHttpRequestDirection implements ParserInterface
12
{
13
    public function parse(PackerInterface $packer, ?ResponseInterface $response): ?ResponseInterface
14
    {
15
        return $response;
16
    }
17
}
18