Beispiel #1
0
 /**
  * @param CreditCard $card
  *
  * @return $this|self
  */
 public function setCardCredit(CreditCard $card) : self
 {
     if (!$card->getId()) {
         $card->generateId();
     }
     $this->getField()->addAttribute('data-creditcard-fields', $card->getId());
     return $this;
 }