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