<?php 

namespace App\Http\Resources\Bond;

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

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

        $array = [
            'id' => $this->id,
            'name' => $this->name,
            'size' => $this->size_specification,
            'size_print' => $this->size_print,
            'weight1_lower' => $this->weight1_lower,
            'weight1_upper' => $this->weight1_upper,
            'weight2_lower' => $this->weight2_lower,
            'weight2_upper' => $this->weight2_upper,
            'weight1_average' => $this->weight1_average,
            'weight2_average' => $this->weight2_average,
            'weight1_nos' => $this->weight1_nos,
            'weight2_nos' => $this->weight2_nos,
            'shape' => $this->shape,
            'taper' => $this->taper,
            'width' => $this->width,
        ];

        $array = $this->base($array);
        
        return $array;
    }
}