src/Resource/CustomerCreditCard.php
protected function populate(stdClass $response)
    {
        $funding = clone $this;
        $funding->data->method = self::METHOD_CREDIT_CARD;
        $funding->data->creditCard = new stdClass();
        $funding->data->creditCard->id = $response->creditCard->id;
        $funding->data->creditCard->brand = $response->creditCard->brand;
        $funding->data->creditCard->first6 = $response->creditCard->first6;
        $funding->data->creditCard->last4 = $response->creditCard->last4;
        $funding->data->creditCard->store = $response->creditCard->store;
        $funding->data->card = new stdClass();
        $funding->data->card->brand = $response->card->brand;
        $funding->data->card->store = $response->card->store;

        return $funding;
    }
protected function populate(stdClass $response)
    {
        $funding = clone $this;
        $funding->data->method = self::METHOD_CREDIT_CARD;
        $funding->data->creditCard = new stdClass();
        $funding->data->creditCard->id = $response->creditCard->id;
        $funding->data->creditCard->brand = $response->creditCard->brand;
        $funding->data->creditCard->first6 = $response->creditCard->first6;
        $funding->data->creditCard->last4 = $response->creditCard->last4;
        $funding->data->creditCard->store = $response->creditCard->store;
        $funding->data->card = new stdClass();
        $funding->data->card->brand = $response->card->brand;
        $funding->data->card->store = $response->card->store;

        return $funding;
    }
protected function populate ( stdClass $ response ) { $ funding = clone $ this ; $ funding -> data -> method = self :: METHOD_CREDIT_CARD ; $ funding -> data -> creditCard = new stdClass ( ) ; $ funding -> data -> creditCard -> id = $ response -> creditCard -> id ; $ funding -> data -> creditCard -> brand = $ response -> creditCard -> brand ; $ funding -> data -> creditCard -> first6 = $ response -> creditCard -> first6 ; $ funding -> data -> creditCard -> last4 = $ response -> creditCard -> last4 ; $ funding -> data -> creditCard -> store = $ response -> creditCard -> store ; $ funding -> data -> card = new stdClass ( ) ; $ funding -> data -> card -> brand = $ response -> card -> brand ; $ funding -> data -> card -> store = $ response -> card -> store ; return $ funding ; }
Mount information of a determined object.

@param \stdClass $response

@return mixed
Mount information of a determined object .