original_string: public function setCreditCard(CreditCard $creditCard)
      {
          $creditCard->setContext(Moip::PAYMENT);
  
          $fundingInstrument = new stdClass;
          $fundingInstrument->method = 'CREDIT_CARD';
          $fundingInstrument->creditCard = $creditCard->getData();
  
          $this->data->fundingInstrument = $fundingInstrument;
  
          unset($this->data->fundingInstruments);
  
          return $this;
      }
code: public function setCreditCard(CreditCard $creditCard)
      {
          $creditCard->setContext(Moip::PAYMENT);
  
          $fundingInstrument = new stdClass;
          $fundingInstrument->method = 'CREDIT_CARD';
          $fundingInstrument->creditCard = $creditCard->getData();
  
          $this->data->fundingInstrument = $fundingInstrument;
  
          unset($this->data->fundingInstruments);
  
          return $this;
      }
code_tokens: public function setCreditCard ( CreditCard $ creditCard ) { $ creditCard -> setContext ( Moip :: PAYMENT ) ; $ fundingInstrument = new stdClass ; $ fundingInstrument -> method = 'CREDIT_CARD' ; $ fundingInstrument -> creditCard = $ creditCard -> getData ( ) ; $ this -> data -> fundingInstrument = $ fundingInstrument ; unset ( $ this -> data -> fundingInstruments ) ; return $ this ; }
docstring: Set customer credit card
  
  @param  \Softpampa\Moip\Helpers\CreditCard  $creditCard
  @return $this
docstring_tokens: Set customer credit card