original_string: public function createCard( CustomerVault\Card $card )
      {
          $card->setRequiredFields(array('profileID'));
          $card->checkRequiredFields();
          $card->setRequiredFields(array(
              'cardNum',
              'cardExpiry'
          ));
          $card->setOptionalFields(array(
              'nickName',
              'merchantRefNum',
              'holderName',
              'billingAddressId',
          ));
  
          $request = new Request(array(
              'method' => Request::POST,
              'uri' => $this->prepareURI("/profiles/" . $card->profileID . "/cards"),
              'body' => $card
          ));
          $response = $this->client->processRequest($request);
          $response['profileID'] = $card->profileID;
  
          return new CustomerVault\Card($response);
      }
code: public function createCard( CustomerVault\Card $card )
      {
          $card->setRequiredFields(array('profileID'));
          $card->checkRequiredFields();
          $card->setRequiredFields(array(
              'cardNum',
              'cardExpiry'
          ));
          $card->setOptionalFields(array(
              'nickName',
              'merchantRefNum',
              'holderName',
              'billingAddressId',
          ));
  
          $request = new Request(array(
              'method' => Request::POST,
              'uri' => $this->prepareURI("/profiles/" . $card->profileID . "/cards"),
              'body' => $card
          ));
          $response = $this->client->processRequest($request);
          $response['profileID'] = $card->profileID;
  
          return new CustomerVault\Card($response);
      }
code_tokens: public function createCard ( CustomerVault \ Card $ card ) { $ card -> setRequiredFields ( array ( 'profileID' ) ) ; $ card -> checkRequiredFields ( ) ; $ card -> setRequiredFields ( array ( 'cardNum' , 'cardExpiry' ) ) ; $ card -> setOptionalFields ( array ( 'nickName' , 'merchantRefNum' , 'holderName' , 'billingAddressId' , ) ) ; $ request = new Request ( array ( 'method' => Request :: POST , 'uri' => $ this -> prepareURI ( "/profiles/" . $ card -> profileID . "/cards" ) , 'body' => $ card ) ) ; $ response = $ this -> client -> processRequest ( $ request ) ; $ response [ 'profileID' ] = $ card -> profileID ; return new CustomerVault \ Card ( $ response ) ; }
docstring: Create card.
  
  @param \Paysafe\CustomerVault\Card $card
  @return \Paysafe\CustomerVault\Card
  @throws PaysafeException
docstring_tokens: Create card .