Total Complexity | 5 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
22 | class LastCombination implements ChargeModifier |
||
23 | { |
||
24 | /** |
||
25 | * @var ChargeModifier |
||
26 | */ |
||
27 | protected $left; |
||
28 | /** |
||
29 | * @var ChargeModifier |
||
30 | */ |
||
31 | protected $right; |
||
32 | |||
33 | public function __construct(ChargeModifier $left, ChargeModifier $right) |
||
34 | { |
||
35 | $this->left = $left; |
||
36 | $this->right = $right; |
||
37 | } |
||
38 | |||
39 | /** |
||
40 | * {@inheritdoc} |
||
41 | */ |
||
42 | public function modifyCharge(?ChargeInterface $charge, ActionInterface $action): array |
||
49 | } |
||
50 | |||
51 | /** |
||
52 | * {@inheritdoc} |
||
53 | */ |
||
54 | public function isSuitable(?ChargeInterface $charge, ActionInterface $action): bool |
||
59 |