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

Cash   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 30
ccs 8
cts 8
cp 1
rs 10
c 0
b 0
f 0
wmc 5
lcom 0
cbo 1

5 Methods

Rating   Name   Duplication   Size   Complexity  
A setFormType() 0 4 1
A setApplication() 0 4 1
A checkout() 0 4 1
A apply() 0 4 1
A setRequest() 0 4 1
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