1 | <?php |
||
26 | class AddPointProcessor implements ItemHolderProcessor |
||
27 | { |
||
28 | /** |
||
29 | * @var EntityManagerInterface |
||
30 | */ |
||
31 | protected $entityManager; |
||
32 | |||
33 | /** |
||
34 | * @var BaseInfo |
||
35 | */ |
||
36 | protected $BaseInfo; |
||
37 | |||
38 | /** |
||
39 | * AddPointProcessor constructor. |
||
40 | * |
||
41 | * @param EntityManagerInterface $entityManager |
||
42 | * @param BaseInfo $BaseInfo |
||
43 | */ |
||
44 | public function __construct(EntityManagerInterface $entityManager, BaseInfo $BaseInfo) |
||
49 | |||
50 | /** |
||
51 | * @param ItemHolderInterface $itemHolder |
||
52 | * @param PurchaseContext $context |
||
53 | * |
||
54 | * @return ProcessResult |
||
55 | */ |
||
56 | public function process(ItemHolderInterface $itemHolder, PurchaseContext $context) |
||
70 | |||
71 | /** |
||
72 | * 単価と数量から加算ポイントに換算する. |
||
73 | * |
||
74 | * @param integer $pointRate ポイント付与率(%) |
||
75 | * @param integer $price 単価 |
||
76 | * @param integer $quantity 数量 |
||
77 | * |
||
78 | * @return double additional point |
||
79 | */ |
||
80 | protected function priceToAddPoint($pointRate, $price, $quantity) |
||
84 | } |
||
85 |
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.