Failed Conditions
Pull Request — experimental/sf (#3236)
by Kentaro
49:41 queued 37:58
created

EmptyProcessor   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 15
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 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 Plugin\PurchaseProcessors\Processor;
15
16
use Eccube\Entity\ItemInterface;
17
use Eccube\Service\PurchaseFlow\ItemProcessor;
18
use Eccube\Service\PurchaseFlow\PurchaseContext;
19
use Eccube\Service\PurchaseFlow\ProcessResult;
20
21
class EmptyProcessor implements ItemProcessor
22
{
23
    /**
24
     * @param ItemInterface $item
25
     * @param PurchaseContext $context
26
     *
27
     * @return ProcessResult
28
     */
29
    public function process(ItemInterface $item, PurchaseContext $context)
30
    {
31
        log_info('empty processor executed', [__METHOD__]);
32
33
        return ProcessResult::success();
34
    }
35
}
36