<?php 

namespace App\Http\Resources\Mini;

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

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

        $array = [
            'id' => $this->id,
            'name' => $this->name,
            'size' => new MiniBondDesignResource($this->design),
        ];
        
        return $array;
    }
}