protected function fillCardDetails($card)
    {
        if ($card) {
            $this->card_brand = $card->brand;
            $this->card_last_four = $card->last4;
        }

        return $this;
    }
protected function fillCardDetails($card)
    {
        if ($card) {
            $this->card_brand = $card->brand;
            $this->card_last_four = $card->last4;
        }

        return $this;
    }
protected function fillCardDetails ( $ card ) { if ( $ card ) { $ this -> card_brand = $ card -> brand ; $ this -> card_last_four = $ card -> last4 ; } return $ this ; }
Fills the user's properties with the source from Stripe.

@param \Stripe\Card|null $card

@return $this
Fills the user s properties with the source from Stripe .