/** * {@inheritdoc} */ public function addPayment(BasePaymentInterface $payment) { /** @var $payment PaymentInterface */ if (!$this->hasPayment($payment)) { $this->payments->add($payment); $payment->setOrder($this); } }
/** * {@inheritdoc} */ public function addPayment(BasePaymentInterface $payment) { if (!$this->hasPayment($payment)) { $this->payments->add($payment); $payment->setOrder($this); } return $this; }
/** * {@inheritdoc} */ public function addPayment(BasePaymentInterface $payment) { /** @var $payment PaymentInterface */ if (!$this->hasPayment($payment)) { $this->payments->add($payment); $payment->setOrder($this); $this->setPaymentState($payment->getState()); } return $this; }