| 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 | 1 | public function __construct(ChargeModifier $left, ChargeModifier $right) |
|
| 38 | |||
| 39 | /** |
||
| 40 | * {@inheritdoc} |
||
| 41 | */ |
||
| 42 | public function modifyCharge(?ChargeInterface $charge, ActionInterface $action): array |
||
| 50 | |||
| 51 | /** |
||
| 52 | * {@inheritdoc} |
||
| 53 | */ |
||
| 54 | public function isSuitable(?ChargeInterface $charge, ActionInterface $action): bool |
||
| 58 | } |
||
| 59 |