<?php 

namespace App\Http\Resources\Mini;

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

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

        $array = [
            'id' => $this->id,
            'name' => $this->name,
            'process' => new MiniBondProcessResource($this->bondProcessParam),
            'status' => $this->status,
        ];
        
        return $array;
    }
}