Completed
Pull Request — experimental/3.1 (#2479)
by chihiro
65:40 queued 24:05
created

Cash::setRequest()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 4
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
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 3
    public function checkout()
0 ignored issues
show
introduced by
Missing function doc comment
Loading history...
14
    {
15 3
        return new PaymentResult();
16
    }
17
18 3
    public function apply()
0 ignored issues
show
introduced by
Missing function doc comment
Loading history...
19
    {
20 3
        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 3
    public function setApplication($app)
0 ignored issues
show
introduced by
Missing function doc comment
Loading history...
29
    {
30 3
        $this->app = $app;
31
    }
32
33 2
    public function setRequest($request)
0 ignored issues
show
introduced by
Missing function doc comment
Loading history...
34
    {
35 2
        $this->request = $request;
36
    }
37
}
38