Completed
Push — support-coverage ( 9b57a3...b5dae6 )
by Kentaro
41:38
created

Cash   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 75%

Importance

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

5 Methods

Rating   Name   Duplication   Size   Complexity  
A checkout() 0 4 1
A apply() 0 4 1
A setFormType() 0 4 1
A setApplication() 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()
14
    {
15 3
        return new PaymentResult();
16
    }
17
18 3
    public function apply()
19
    {
20 3
        return false;
21
    }
22
23
    public function setFormType($form)
24
    {
25
        // quiet
26
    }
27
28
    public function setApplication($app)
29
    {
30
        $this->app = $app;
31
    }
32
33 2
    public function setRequest($request)
34
    {
35 2
        $this->request = $request;
36
    }
37
}
38