/**
  * {@inheritdoc}
  */
 public function setLineItem(PaymentLineItemInterface $line_item)
 {
     $this->lineItems[$line_item->getName()] = $line_item;
     return $this;
 }
 /**
  * {@inheritdoc}
  */
 public function setLineItem(PaymentLineItemInterface $line_item)
 {
     $line_item->setPayment($this);
     $this->unsetLineItem($line_item->getName());
     $this->get('line_items')->appendItem($line_item);
     return $this;
 }