<?php

namespace App\Http\Resources;

use Illuminate\Http\Request;
use Illuminate\Http\Resources\Json\JsonResource;

class CardsListResource extends JsonResource
{
    public function toArray(Request $request): array
    {
        return [
            'id'               => $this->id,
            'brand'            => $this->brand,
            'last_four_digits' => $this->last_four_digits,
            'card_name'        => $this->card_name,
            'holder_name'      => $this->holder_name

        ];
    }
}
