| Total Complexity | 6 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Coverage | 37.5% |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | trait SettableChargeModifierTrait |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * @var ChargeModifier|null |
||
| 24 | */ |
||
| 25 | protected $modifier; |
||
| 26 | |||
| 27 | /** {@inheritdoc} */ |
||
| 28 | 4 | public function modifyCharge(?ChargeInterface $charge, ActionInterface $action): array |
|
| 35 | } |
||
| 36 | |||
| 37 | /** {@inheritdoc} */ |
||
| 38 | public function isSuitable(?ChargeInterface $charge, ActionInterface $action): bool |
||
| 39 | { |
||
| 40 | return $this->modifier ? $this->modifier->isSuitable($charge, $action) : false; |
||
| 41 | } |
||
| 42 | |||
| 43 | public function setModifier(ChargeModifier $modifier) |
||
| 46 | } |
||
| 47 | } |
||
| 48 |