<?php

namespace Modules\MembershipApplication\Transformers;

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

class MembershipApplicationHeirResource extends JsonResource
{
    public function toArray(Request $request): array
    {
        return [
            'id' => $this->id,
            'name' => $this->name,
            'ic_number' => $this->ic_number,
            'relationship' => $this->relationship,
            'phone_number' => $this->phone_number,
        ];
    }
}
