Failed Conditions
Pull Request — experimental/sf (#3225)
by Kentaro
50:47 queued 42:12
created

CreditCard   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

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

4 Methods

Rating   Name   Duplication   Size   Complexity  
checkout() 0 1 ?
apply() 0 1 ?
setFormType() 0 1 ?
A setOrder() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of EC-CUBE
5
 *
6
 * Copyright(c) LOCKON CO.,LTD. All Rights Reserved.
7
 *
8
 * http://www.lockon.co.jp/
9
 *
10
 * For the full copyright and license information, please view the LICENSE
11
 * file that was distributed with this source code.
12
 */
13
14
namespace Eccube\Service\Payment\Method;
15
16
use Eccube\Entity\Order;
17
use Eccube\Service\Payment\PaymentMethod;
18
use Symfony\Component\Form\FormInterface;
19
20
abstract class CreditCard implements PaymentMethod
0 ignored issues
show
introduced by
Abstract class name is not prefixed with "Abstract"
Loading history...
introduced by
Missing class doc comment
Loading history...
21
{
22
    /**
23
     * @var
24
     */
25
    protected $Order;
26
27
    /**
28
     * {@inheritdoc}
29
     */
30
    abstract public function checkout();
31
32
    /**
33
     * {@inheritdoc}
34
     */
35
    abstract public function apply();
36
37
    /**
38
     * {@inheritdoc}
39
     */
40
    abstract public function setFormType(FormInterface $form);
41
42
    /**
43
     * {@inheritdoc}
44
     */
45
    public function setOrder(Order $Order)
46
    {
47
        $this->Order = $Order;
48
    }
49
}
50