<?php 

namespace App\Http\Resources\Transaction;

use Illuminate\Http\Resources\Json\JsonResource;
use App\Http\Resources\BaseJsonResource;

class EntryTagResource extends BaseJsonResource
{
    public function toArray($request)
    {

        $array = [
            'id' => $this->id,
            'name' => $this->title,
            'color' => $this->color,
            'background_color' => $this->background_color
        ];
        
        return $array;
    }
}