Completed
Push — experimental/3.1 ( 5d5405...8c6d72 )
by Yangsin
132:35 queued 124:55
created

EmptyStrategy::setOrder()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 7
rs 9.4285
1
<?php
2
3
namespace Plugin\Strategy\Strategy;
4
5
use Eccube\Application;
6
use Eccube\Entity\Order;
7
use Eccube\Service\Calculator\ShipmentItemCollection;
8
use Eccube\Service\Calculator\Strategy\CalculateStrategyInterface;
9
10
/**
11
 * プラグインから拡張するための、空のStrategyです.
12
 * 特に処理は行わず、各メソッドがコールされた際にエラーログを出力します.
13
 *
14
 * 購入フロー及び受注登録・編集画面で呼び出されます.
15
 *
16
 * @package Plugin\Strategy\Strategy
17
 */
18
class EmptyStrategy implements CalculateStrategyInterface
19
{
20
    protected $Order;
21
22
    public function __construct()
0 ignored issues
show
introduced by
Missing function doc comment
Loading history...
23
    {
24
        log_info(__METHOD__.' called');
25
    }
26
27
    public function execute(ShipmentItemCollection $ShipmentItems)
0 ignored issues
show
introduced by
Missing function doc comment
Loading history...
28
    {
29
        log_info(__METHOD__.' called');
30
    }
31
32
    public function setOrder(Order $Order)
0 ignored issues
show
introduced by
Missing function doc comment
Loading history...
33
    {
34
        log_info(__METHOD__.' called');
35
36
        // XXX 明細のみ必要な場合もOrderをセットする必要がある
37
        $this->Order = $Order;
38
    }
39
40
    public function setApplication(Application $app)
0 ignored issues
show
introduced by
Missing function doc comment
Loading history...
41
    {
42
        log_info(__METHOD__.' called');
43
    }
44
}
45