public function getCode();
/** * {@inheritdoc} */ public function setPaymentMethod(PaymentInterface $method = null) { $this->paymentMethod = $method; $this->paymentMethodCode = $method ? $method->getCode() : null; }