Example #1
0
 /**
  * {@inheritdoc}
  */
 public function removePayment(BasePaymentInterface $payment)
 {
     if ($this->hasPayment($payment)) {
         $this->payments->removeElement($payment);
     }
     return $this;
 }
Example #2
0
 /**
  * {@inheritdoc}
  */
 public function removePayment(BasePaymentInterface $payment)
 {
     /** @var $payment PaymentInterface */
     if ($this->hasPayment($payment)) {
         $this->payments->removeElement($payment);
         $payment->setOrder(null);
     }
 }