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

CreditCard::setOrder()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 1
dl 0
loc 4
ccs 0
cts 2
cp 0
crap 2
rs 10
c 0
b 0
f 0
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