/**
* @throws PaymentMethodNotChangeableException
*/
private function validatePaymentState(OrderEntity
$order): void
{ if ($this->orderService->
isPaymentChangeableByTransactionState($order)) { return;
} throw new PaymentMethodNotChangeableException($order->
getId());
}}