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

EccubePaymentCreditCard::verify()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 5
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\Service\Payment\PaymentDispatcher;
17
use Eccube\Service\Payment\PaymentResult;
18
use Symfony\Component\Form\FormInterface;
19
20
class EccubePaymentCreditCard extends CreditCard
0 ignored issues
show
introduced by
Missing class doc comment
Loading history...
21
{
22
    protected $request;
23
24
    /**
25
     * {@inheritdoc}
26
     */
27
    public function checkout()
28
    {
29
        // 支払処理をしたら PaymentResult を返す
30
        return new PaymentResult();
31
    }
32
33
    /**
34
     * {@inheritdoc}
35
     */
36
    public function apply()
37
    {
38
        // 他のコントローラに移譲等の処理をする
39
        $dispatcher = new PaymentDispatcher();
40
        $dispatcher->setForward(true);
41
        $dispatcher->setRoute('shopping_***');
42
43
        return $dispatcher;
44
    }
45
46
    /**
47
     * {@inheritdoc}
48
     */
49
    public function setFormType(FormInterface $form)
50
    {
51
        // nothing
52
    }
53
54
    /**
55
     * {@inheritdoc}
56
     */
57
    public function verify()
58
    {
59
        // 有効性チェック等の処理をする
60
        return new PaymentResult();
61
    }
62
}
63