Failed Conditions
Pull Request — experimental/3.1 (#2486)
by
unknown
68:04 queued 25:47
created

Cash::setRequest()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 4
rs 10
c 0
b 0
f 0
ccs 0
cts 2
cp 0
crap 2
1
<?php
2
3
namespace Eccube\Service\Payment\Method;
4
5
use Eccube\Service\Payment\PaymentMethod;
6
use Eccube\Service\Payment\PaymentResult;
7
8
class Cash implements PaymentMethod
0 ignored issues
show
introduced by
Missing class doc comment
Loading history...
9
{
10
    protected $app;
11
    protected $request;
12
13 1
    public function checkout()
0 ignored issues
show
introduced by
Missing function doc comment
Loading history...
14
    {
15 1
        return new PaymentResult();
16
    }
17
18 1
    public function apply()
0 ignored issues
show
introduced by
Missing function doc comment
Loading history...
19
    {
20 1
        return false;
21
    }
22
23
    public function setFormType($form)
0 ignored issues
show
introduced by
Missing function doc comment
Loading history...
24
    {
25
        // quiet
26
    }
27
28 1
    public function setApplication($app)
0 ignored issues
show
introduced by
Missing function doc comment
Loading history...
29
    {
30 1
        $this->app = $app;
31
    }
32
33
    public function setRequest($request)
0 ignored issues
show
introduced by
Missing function doc comment
Loading history...
34
    {
35
        $this->request = $request;
36
    }
37
}
38